+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    Using
    not specified
    Join Date
    Dec 2004
    Location
    YUL
    Posts
    484

    Default unifying mtext font

    Registered forum members do not see this ad.

    I have a lot of mtexts, each created with more than one font. I need to convert them so they all have the same new font. Matchprop can’t do the trick. Assigning a new style (chm) through ‘entmod’

    (setq e1 (entget n))
    (entmod (subst
    (cons 7 "chm")
    (assoc 7 e1)
    e1
    )

    )

    changes only a portion of the text font (see the drawing).
    Any idea of how to do this, other than manually, in ddedit (mtedit) dialog box?

    Thanks.
    Attached Files

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,729

    Default

    You may need to first strip the MTEXT Formatting before the changing the Text Style
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  3. #3
    Senior Member
    Using
    not specified
    Join Date
    Dec 2004
    Location
    YUL
    Posts
    484

    Default

    What trick is there to strip formatting, other than manually? I have a lot of these mtexts.

  4. #4
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,729

    Default

    There are a few routines around, just google Strip Mtext,

    Here for example:

    http://cadabyss.wordpress.com/
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  5. #5
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Jul 2009
    Posts
    259

    Default

    Registered forum members do not see this ad.

    You know what?... I tried to fix a mtext with 2 different styles but this lisp didn´t fixed it... I am sorry but doesn´t work for it... but there must be other lisp to do it... just need to find them, I guess.

    Quote Originally Posted by Lee Mac View Post
    There are a few routines around, just google Strip Mtext,

    Here for example:

    http://cadabyss.wordpress.com/
    I use one lisp called ddchtext... It will do that and a lot more things... take a look at it... I renamed to DT... just to make it easier to load and use...

    First select a bunch of object... then type DT.. (supposing you already loaded it) and filter your options.. and finish pressing select.
    Attached Images
    Attached Files
    Last edited by gilsoto13; 30th Sep 2009 at 12:53 am.

Similar Threads

  1. Mtext editor font discrepancy
    By yrnomad in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 1
    Last Post: 29th Apr 2009, 11:33 am
  2. Template MText font | cad 09 mechanical
    By Proctor in forum AutoCAD General
    Replies: 10
    Last Post: 23rd Apr 2009, 04:50 pm
  3. MTEXT Font Style for Symbols
    By mrjagsr in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 11
    Last Post: 12th May 2008, 09:06 pm
  4. Font offset in MTEXT
    By everglade71 in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 24th Dec 2006, 06:27 pm
  5. Problem viewing romans font in the mtext view screen
    By XAVIER in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 9th Feb 2004, 10:12 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts