AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Valued Contributor
Zupdood
Posts: 56
Registered: ‎03-19-2009
Message 1 of 10 (4,578 Views)

Changing Mtext width of multiple objects

4578 Views, 9 Replies
06-21-2011 07:45 AM

Is there a way - or 3rd party app or lisp- to change the width of multiple Mtext objects all at once?  I have several drawings where the width of all Mtext objects is 1.25, and I would like to change all of them to 1.

 

Ideas?  Is there some simple way to do this?

 

Thanks!

 

Tom

Distinguished Contributor
jwjones1
Posts: 128
Registered: ‎05-23-2007
Message 2 of 10 (4,566 Views)

Re: Changing Mtext width of multiple objects

06-21-2011 09:34 AM in reply to: Zupdood

Select all the mtext objects, open the PROPERTIES palette (ctrl-1), change the width there.  You can select all of the mtext objects using the QSELECT in the properties palette or by using a filter.  Hope that helps! =)

Valued Contributor
Zupdood
Posts: 56
Registered: ‎03-19-2009
Message 3 of 10 (4,562 Views)

Re: Changing Mtext width of multiple objects

06-21-2011 09:40 AM in reply to: jwjones1

Sorry.....I mean the character width, not the 'defined width' which is how wide the overall Mtext string is.  Is there a way to change the character width, other than going into the dialog box for each individual piece of Mtext?

Distinguished Contributor
jwjones1
Posts: 128
Registered: ‎05-23-2007
Message 4 of 10 (4,555 Views)

Re: Changing Mtext width of multiple objects

06-21-2011 09:52 AM in reply to: Zupdood

Ahh... is it hard coded into the text?  If it is not, you can just change the width factor in the STYLE dialog box.

 

If it is... well...that sux.  I'm not sure how I would change it globally.  You might be able to find some lisp routines online that can do it.

*Expert Elite*
ToanDN
Posts: 1,878
Registered: ‎09-26-2006
Message 5 of 10 (4,549 Views)

Re: Changing Mtext width of multiple objects

06-21-2011 10:19 AM in reply to: Zupdood

If the width factor is defined in styles then change it there.  If it is overriden in Mtext editor then use the attached lisp.

Valued Contributor
Zupdood
Posts: 56
Registered: ‎03-19-2009
Message 6 of 10 (4,547 Views)

Re: Changing Mtext width of multiple objects

06-21-2011 10:20 AM in reply to: ToanDN

Thank you Toan I'll try that!!

 

tom

Contributor
moin_cad
Posts: 15
Registered: ‎10-13-2011
Message 7 of 10 (3,354 Views)

Re: Changing Mtext width of multiple objects

04-01-2013 06:27 AM in reply to: Zupdood

i tried your stripmtext lisp. nice lisp.

 

but i want to change text width  not whole word width per mtext.

now i have text width of 1.0 .

i want to convert within mtext as 0.8

please suggest

*Expert Elite*
JGerth
Posts: 2,037
Registered: ‎12-05-2005
Message 8 of 10 (3,343 Views)

Re: Changing Mtext width of multiple objects

04-01-2013 07:20 AM in reply to: moin_cad

Use the STYLE command, and change the width factor there.  MTEXT will update to reflect the change (note that TEXT objects won't)

New Member
jhasselbms
Posts: 1
Registered: ‎03-05-2013
Message 9 of 10 (3,082 Views)

Re: Changing Mtext width of multiple objects

05-21-2013 08:47 AM in reply to: ToanDN

Worked perfectly!!!! Great Lisp.

 

Many Thanks!

New Member
aghlaing
Posts: 1
Registered: ‎02-07-2014
Message 10 of 10 (1,606 Views)

Re: Changing Mtext width of multiple objects

02-07-2014 11:56 PM in reply to: Zupdood

Thanks a lot. i used that lsp at my home pc. it worked. But i can't use that at my office pc, because we have only Auto CAD 2012 LT. I hate LT. By the way, Thanks . Great Lsp. I wanna lean Lisp fuction. 


Zupdood wrote:

Is there a way - or 3rd party app or lisp- to change the width of multiple Mtext objects all at once?  I have several drawings where the width of all Mtext objects is 1.25, and I would like to change all of them to 1.

 

Ideas?  Is there some simple way to do this?

 

Thanks!

 

Tom


 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.