Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Active Contributor
JGAo1
Posts: 43
Registered: ‎05-04-2006
Message 1 of 4 (267 Views)
Accepted Solution

Is there a tool to compact Mtext boxes?

267 Views, 3 Replies
06-22-2011 02:40 AM
Hi, I was wondering if anyone has developed or knows of a tool that can help me.
I've inherited a project where the original drafter was inexperienced in AutoCAD.
One of the problems is that the width of mtext boxes have not been compacted down to the width of the text.

It would be impractical for me to open each mtext entry & double click on the ruler end, so I wondered if there is a routine that can do this with a selection of text in a drawing.

My own LISP experience is limited to creating shortcuts for regular commands (ZE-Zoom Extents etc.), so this is beyond my current limits.
Thanks in advance for anyone who can help, or point me in the right direction.

PS - One great tool I found was StripMtext from Steve Doman and Joe Burke at http://cadabyss.wordpress.com/. It removes additional formatting from Mtext. It is superb!
JGA

My apologies for not monitoring this thread more closely. Thanks to all who showed interest .

 I'm pleased to report that the routine FX.lsp from http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/MText-Set-Limits-Box-to-minimum/m-p/1527939/highlight/false works fine without a problem for both ANNOTATIVE & normal text.
It will change the width to the longest line of text in the mtext box. Now I just need it to change the height...

*Expert Elite*
Kent1Cooper
Posts: 5,872
Registered: ‎09-13-2004
Message 2 of 4 (262 Views)

Re: Is there a tool to compact Mtext boxes?

06-22-2011 03:40 AM in reply to: JGAo1

JGAo1 wrote:
Hi, I was wondering if anyone has developed or knows of a tool .... the width of mtext boxes have not been compacted down to the width of the text.
....

Search this forum for "Mtext Box" or "Mtext Boxes" -- you'll find several threads on the subject.

Kent Cooper
Active Contributor
JGAo1
Posts: 43
Registered: ‎05-04-2006
Message 3 of 4 (220 Views)

Re: Is there a tool to compact Mtext boxes?

06-27-2011 01:57 AM in reply to: Kent1Cooper

OK, thanks for the tip

JGA
Active Contributor
JGAo1
Posts: 43
Registered: ‎05-04-2006
Message 4 of 4 (208 Views)

Re: Is there a tool to compact Mtext boxes? - SOLVED

06-27-2011 07:56 AM in reply to: JGAo1

My apologies for not monitoring this thread more closely. Thanks to all who showed interest .

 I'm pleased to report that the routine FX.lsp from http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/MText-Set-Limits-Box-to-minimum/m-p/1... works fine without a problem for both ANNOTATIVE & normal text.
It will change the width to the longest line of text in the mtext box. Now I just need it to change the height...

JGA
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.