• Blog posts

    Bio

    By Dennis Collin

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_1.JPG

    When teaching new and existing users of AutoCAD I spend a lot of time on the importance of using template files and adhering to company defined standards. Following these rules should ensure files look and behave in an identical and reliable manner. However even in this situation things can be frustrated when receiving AutoCAD drawings from external sources, or when some drawings are modified by contracting staff who have a more ‘fluid’ grasp of the rules.

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_2.JPG

    In AutoCAD, for all annotations I recommend the use of styles, including elements like Text and Mtext entities. The style controls sizing behaviour, appearance and font which will ensure said annotation looks consistent for all project documentation.

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_3.JPG

    However, like many AutoCAD functions these rules can be overridden, and object specific rules can be applied. Whilst this may seem like a versatile approach, left unchecked, can create hours of work correcting hundreds of text entities to display with the correct management approved font and size.

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_4.JPG

    Consider an MText entity, a user can highlight a portion of text and change the font and size to an alternative option. This means that when the text style gets updated individual text entities retain their overridden properties, and if this action is performed regularly or the element copied then this could take hours to fix manually!

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_5.JPG

    Selecting the offending text will display a series of control characters, fonts and sizing overrides, whereas ideally the contents should typically just show the contents of the text. To get the element to follow the style settings, these prefixes need to be removed. However, if there are hundreds of entities this could take time and money. This is option 1. However, if you have full AutoCAD there is a Lisp routine that will make the task so much easier.

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_6.JPG

    I have mentioned accessing Lisp routines before, via the Appload command here.

    https://www.cadlinecommunity.co.uk/hc/en-us/articles/360003707777-AutoCAD-Improving-productivity-with-external-routines

    The original routine can be accessed here courtesy of Steve Doman and Joe Burke at CADABYSS.

    https://cadabyss.wordpress.com/2010/01/04/stripmtext-v5-0/

    Load the routine and optionally add it to the start-up suite via the Appload command.

    Once loaded simply type the new command STRIPMTEXT at the command prompt, select the elements, choose the overrides to remove and click OK. All non-compliant text entities should revert to their default, style defined settings.

    AutoCAD_Tip___Setting_text_entities_to_use_the_default_Text_Style_Font_-_7.JPG