• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD 2010/2011/2012 DWG Format

    Reply
    Valued Contributor
    Posts: 55
    Registered: ‎03-19-2009

    Changing Mtext width of multiple objects

    1508 Views, 8 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

    Please use plain text.
    Distinguished Contributor
    Posts: 124
    Registered: ‎05-23-2007

    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! =)

    Please use plain text.
    Valued Contributor
    Posts: 55
    Registered: ‎03-19-2009

    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?

    Please use plain text.
    Distinguished Contributor
    Posts: 124
    Registered: ‎05-23-2007

    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.

    Please use plain text.
    *Expert Elite*
    ToanDN
    Posts: 1,839
    Registered: ‎09-26-2006

    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.

    Please use plain text.
    Valued Contributor
    Posts: 55
    Registered: ‎03-19-2009

    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

    Please use plain text.
    Contributor
    moin_cad
    Posts: 15
    Registered: ‎10-13-2011

    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

    Please use plain text.
    *Expert Elite*
    JGerth
    Posts: 1,127
    Registered: ‎12-05-2005

    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)

    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎03-05-2013

    Re: Changing Mtext width of multiple objects

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

    Worked perfectly!!!! Great Lisp.

     

    Many Thanks!

    Please use plain text.