Author Topic: Is there a tool to compact Mtext boxes? - SOLVED!  (Read 25773 times)

0 Members and 1 Guest are viewing this topic.

JGA

  • Mosquito
  • Posts: 10
Re: Is there a tool to compact Mtext boxes?
« Reply #30 on: June 27, 2011, 11:00:08 AM »
My apologies for not monitoring this thread more closely.
Thanks to all who showed interest & those who provided a response & tools to help.
In the end I didn't get any of the tools to work as intended, other than those which reduced the mtext width to "0". This may be because I'm currently on ACA 2011 (in vanilla AutoCAD mode), or the drawing, which has given me a few problems already.

Anyway - 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... :wink:

Thanks again.

Regards,
JGA

Joe Burke

  • Guest
Re: Is there a tool to compact Mtext boxes? - SOLVED!
« Reply #31 on: June 30, 2011, 08:31:58 AM »
Search for the routine which I think I posted here somewhere named ShinkwrapMText v2a.lsp.

It should do what you want, if I understand the question correctly.

JGA

  • Mosquito
  • Posts: 10
Re: Is there a tool to compact Mtext boxes? - SOLVED!
« Reply #32 on: June 30, 2011, 08:48:16 AM »
Joe,
Thanks for your comment. I had a search in the site & using Google without success, but the fx.lsp does the job for me.

3dwannab

  • Newt
  • Posts: 39
Re: Is there a tool to compact Mtext boxes? - SOLVED!
« Reply #33 on: April 07, 2018, 01:06:53 PM »
I know I'm late but here's the link for ShrinkwrapMText v2a.lsp.

https://autocadtips1.com/2011/08/13/autolisp-text-box-width/

ScottMC

  • Newt
  • Posts: 191
Re: Is there a tool to compact Mtext boxes? - SOLVED!
« Reply #34 on: April 07, 2018, 11:30:53 PM »
Using my A2K got MATCHPROP to do exactly what's wanted and wondering why this wasn't posted..

JGA

  • Mosquito
  • Posts: 10
Re: Is there a tool to compact Mtext boxes? - SOLVED!
« Reply #35 on: April 09, 2018, 04:26:00 AM »
3dwannab, better late than never! Thanks.

ScottMC - A2K?