Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Routine to set ALL text styles to Romans.shx?

  1. #21
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Routine to set ALL text styles to Romans.shx?

    Simply iterate thru all the Layout objects againt its Block object, checking each object within the block (a layout and model space is treated like a block) to see if it is a text-based object.

    But in all honesty, a filtered selection set is better, e.g.:

    (setq CurSet (ssget "X" '((0 . "TEXT") (-4 . "<=") (40 . 4.7))))

    Note that the "X" option searches the entire drawing without user interaction.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  2. #22
    100 Club
    Join Date
    2007-02
    Location
    Porto
    Posts
    107
    Login to Give a bone
    0

    Default Re: Routine to set ALL text styles to Romans.shx?

    Quote Originally Posted by RobertB View Post
    Simply iterate thru all the Layout objects againt its Block object, checking each object within the block (a layout and model space is treated like a block) to see if it is a text-based object.

    But in all honesty, a filtered selection set is better, e.g.:

    (setq CurSet (ssget "X" '((0 . "TEXT") (-4 . "<=") (40 . 4.7))))

    Note that the "X" option searches the entire drawing without user interaction.
    This is much faster and produces excellent results. For the purpose I want is the best! Thank you.

  3. #23
    Member
    Join Date
    2012-07
    Posts
    5
    Login to Give a bone
    0

    Default Re: Routine to set ALL text styles to Romans.shx?

    Sorry to gravedig here. Is it possible to edit the lisp routine to alter the font in Mtext ? The problem I have is that somehow I have inherited a file where the Mtext style is Romans but the shape text is Arial. have to manually edit each line .... ( yes btw Romans style is correctly defined )

  4. #24
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,508
    Login to Give a bone
    0

    Default Re: Routine to set ALL text styles to Romans.shx?

    Quote Originally Posted by bjrochford958510 View Post
    Sorry to gravedig here. Is it possible to edit the lisp routine to alter the font in Mtext ? The problem I have is that somehow I have inherited a file where the Mtext style is Romans but the shape text is Arial. have to manually edit each line .... ( yes btw Romans style is correctly defined )
    Sounds like an MTEXT formatting issue, meaning someone has over ridden the style to a font within the MTEXT.
    You may want to look into a lisp routine "STRIPMTEXT[3].LSP" where you can select to remove the formatting.

    I think it lives here in AUGI somewhere.

  5. #25
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Routine to set ALL text styles to Romans.shx?


Page 3 of 3 FirstFirst 123

Similar Threads

  1. RomanS Text font in Revit
    By Happyunited in forum Revit MEP - General
    Replies: 2
    Last Post: 2011-07-29, 02:53 PM
  2. VBA.NET Routine to Merge Text Styles
    By chillme1 in forum Dot Net API
    Replies: 6
    Last Post: 2011-02-24, 11:27 AM
  3. Routine to change text styles
    By amanda_duvall in forum AutoLISP
    Replies: 9
    Last Post: 2010-10-13, 07:09 PM
  4. All Text plotting Romans (not good)
    By JeffClark in forum AutoCAD Plotting
    Replies: 3
    Last Post: 2010-01-08, 07:05 PM
  5. Global Change all Text Styles to Romans font
    By f.tagle in forum AutoLISP
    Replies: 18
    Last Post: 2009-04-29, 05:04 AM

Posting Permissions

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