Jump to content

Centre Text within a Block


a482

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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
Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...