Jump to content
a482

Centre Text within a Block

Recommended Posts

a482

Looking for a Lisp which will allow me to centre text within a block.

 

Example below where I would like the text to be centered within the block with max 2 clicks. Ideally I could do this on mass as I have 300 or so to do but not sure if possible. 

 

Thanks,

 

image.png.ba34090741b1d6f4924f07d21fdd2bf9.png

Share this post


Link to post
Share on other sites
dlanorh

A better explanation is required. Is the text part of the Block? It would be easier to help if you provided a small sample drawing with a couple of examples.

 

Share this post


Link to post
Share on other sites
a482
On 10/11/2019 at 1:45 PM, dlanorh said:

A better explanation is required. Is the text part of the Block? It would be easier to help if you provided a small sample drawing with a couple of examples.

 

The text is Mtext. I want to be able to click the blue line of the box and have the text centered within in.

 

Thanks,

Share this post


Link to post
Share on other sites
pkenewell

What version of AutoCAD are you using? If 2017 or above, are you aware of the "gcen" (geometric center) object snap modifier? That would make it easy - no lisp required.

Edited by pkenewell
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...