+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member ammobake's Avatar
    Computer Details
    ammobake's Computer Details
    Operating System:
    Windows 7 Pro 64bit
    Computer:
    HP 2240 SFF Workstation
    Motherboard:
    HP
    CPU:
    Intel Xeon CPU E3-1225 v5 @ 3.30ghz, 3.30ghz
    RAM:
    18 GB RAM
    Graphics:
    Nvidia NVS 510
    Primary Storage:
    Confidential
    Secondary Storage:
    Confidential
    Monitor:
    4 total (2 - 27 in monitors below, 2- 22 in monitors on top)
    Discipline
    Construction
    ammobake's Discipline Details
    Occupation
    CAD Drafting & Architecutural Design (gov/military)
    Discipline
    Construction
    Using
    AutoCAD 2017
    Join Date
    Mar 2008
    Location
    Fairbanks, Alaska
    Posts
    201

    Default Mtext issue - text style overrides

    Registered forum members do not see this ad.

    I've attached a sample of some text we got in a CAD drawing from one of our clients.

    For whatever reason, all the standard text is showing up as vivaldi text for me. A coworker said he was able to open up the drawing and everything was showing up fine??

    If you look in the contents under properties there's a slash pxqc prefix that I've never seen before.

    It's like Vivaldi was set up an override to the standard text style. So even if I change the text style to something else, the Vivaldi text persists.

    So the only way I see to change it back to something different is to open every mtext in the drawing and change the override text style to something different.

    That works but.... if there's some way to remove the text overrides all at once it would save me alot of time.

    Has anyone seen this before?

    Thank you!

    -ChriS
    Attached Files

  2. #2
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,727

    Default

    Mtext holds the text style as part of the text rather than just using the default style settings you have to go into the Mtext and remove the style setting. Definately a lisp available.

    The original text with each word set to a different style was "This is an example of styles", the dump of what is hidden, look at \f
    ; TextString = "This {\\fBell MT|b0|i0|c0|p18;is} {\\fDavid|b0|i0|c177|p34;an} {\\fBroadway|b0|i0|c0|p82;example} of {\\Fhfs_r1|c0;styles}"


    A quick google http://cadsetterout.com/resources/stripmtext-lisp/
    Last edited by BIGAL; 18th Aug 2016 at 09:56 am.
    A man who never made mistakes never made anything

  3. #3
    Senior Member ammobake's Avatar
    Computer Details
    ammobake's Computer Details
    Operating System:
    Windows 7 Pro 64bit
    Computer:
    HP 2240 SFF Workstation
    Motherboard:
    HP
    CPU:
    Intel Xeon CPU E3-1225 v5 @ 3.30ghz, 3.30ghz
    RAM:
    18 GB RAM
    Graphics:
    Nvidia NVS 510
    Primary Storage:
    Confidential
    Secondary Storage:
    Confidential
    Monitor:
    4 total (2 - 27 in monitors below, 2- 22 in monitors on top)
    Discipline
    Construction
    ammobake's Discipline Details
    Occupation
    CAD Drafting & Architecutural Design (gov/military)
    Discipline
    Construction
    Using
    AutoCAD 2017
    Join Date
    Mar 2008
    Location
    Fairbanks, Alaska
    Posts
    201

    Default

    There's an easy way to fix without a lisp routine - bear with me.

    So it turns out the pxqc prefix just reflects the alignment.

    \pxqc - center align
    \pxql - left align
    \pxqr - right align

    An explode will remove the style overrides but break the mtext down to individual lines of standard text. The resulting lines of text end up not being aligned so this isn't necessarily ideal.

    After doing some digging, it turns out that if you are trying to open a CAD drawing with a font type that you don't have, Autocad has specific rules on how it treats this.

    I'll try to post the Autocad font substitution rules in the next post (wouldn't work in this one).

    In my case, for whatever reason, our client must have used a truetype font I didn't have. Windows considered VIVALDI text to be similar to the one used in the CAD drawing so it was substituted for all text objects in my CAD drawing...

    Autocad doesn't necessarily give you any errors or warnings when the substitution occurs, so it isn't obvious what is going on.

    One workaround is to get the missing font type from the client so Autocad won't push it through font substitution. This seems like it would be the easiest solution but may not always be possible for others.

    Another workable option is to specify the FONTALT variable (by default this is blank). This can be found in...

    Tools - Options - "Text Editor, Dictionary, and Font Names" (plus sign) - Alternate Font File - then click the arrow.

    You can then specify a substitute and, if needed, experiment to see what might best match your needs. I used Arial, saved, and the next time I opened the drawing everything was substituted to Arial font type instead of VIVALDI.
    -ChriS
    Last edited by ammobake; 26th Aug 2016 at 10:45 pm.

  4. #4
    Senior Member ammobake's Avatar
    Computer Details
    ammobake's Computer Details
    Operating System:
    Windows 7 Pro 64bit
    Computer:
    HP 2240 SFF Workstation
    Motherboard:
    HP
    CPU:
    Intel Xeon CPU E3-1225 v5 @ 3.30ghz, 3.30ghz
    RAM:
    18 GB RAM
    Graphics:
    Nvidia NVS 510
    Primary Storage:
    Confidential
    Secondary Storage:
    Confidential
    Monitor:
    4 total (2 - 27 in monitors below, 2- 22 in monitors on top)
    Discipline
    Construction
    ammobake's Discipline Details
    Occupation
    CAD Drafting & Architecutural Design (gov/military)
    Discipline
    Construction
    Using
    AutoCAD 2017
    Join Date
    Mar 2008
    Location
    Fairbanks, Alaska
    Posts
    201

    Default

    Registered forum members do not see this ad.


Similar Threads

  1. Finding all dimensions with text overrides
    By BryanC in forum AutoCAD General
    Replies: 2
    Last Post: 31st Aug 2012, 01:28 pm
  2. Dimensions with text overrides
    By SuperCAD in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 1st Dec 2011, 02:40 pm
  3. Multileader Block Attributes and Style Overrides
    By CyberAngel in forum AutoCAD Bugs, Error Messages & Quirks
    Replies: 2
    Last Post: 29th Nov 2011, 03:31 pm
  4. How to find all mtext which is using a specific text style?
    By salmonrose in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 3rd Feb 2010, 06:27 pm
  5. Dim Style overrides & changing dim style variables.
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 3rd Dec 2008, 03:00 pm

Tags for this Thread

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