Was it you who overrode all the MTEXT styles in the drawings bolding EVERYTHING?!?

Most of us I'm sure have come across a drawing where the text styles have been modified to a different font or other formatting (such as bolding, italicized, etc.); which in-turn causes CAD Standards issues on the project? It's not a simple or quick fix.... 

If you have come across this issue you know how time extensive it can be to manually go into each text object and re-format to correct the issue.

Luckily there is a much easier way....

I came across this excellent AutoLISP routine many years back and again recently while providing a solution to another user's posts on the Autodesk: AutoCAD Forums

STRIPMTEXT allows a user to quickly remove unwanted MTEXT formatting embedded in Mtext, Mleaders, Dimensions, Tables and Multi-line Attributes.

Issue (Problem)

When a user attempts to change a Text Style, some text entities created with MTEXT (or part of an annotation object) do not follow the changes as specified. Why is this?

Selecting the effected text object and checking its Properties will likely reveal that a different formatting configuration is present.

The cause of this formatting issue occurred when the text objects was previously assigned a different formatting when a user "overrode" the assigned text style. This override commonly occurs when edits to the formatting are made through the MTEXT editor.

In the example below, the MLEADER text object was 'double-clicked' or opened in Text Editor and the user selected the text entity and pressed the 'B for BOLD'. By doing so, this text object has a different formatting configuration than the previously assigned text style.


There are two options, one better than the other depending on the number of affected text objects within the drawing that need correcting.

Option 1 - Manually Fix Each Text Object

  • If you only have a few text objects that are incorrectly formatted, you can simply edit them individually and apply the correct formatting through the text editor. There is also a command within the text editor to remove all existing formatting. This will allow text characters to adhere to the applied text style to that specific text object.
  • If you have multiple text objects that are incorrectly formatted, you may explode the MTEXT objects into TEXT objects. The formatting overrides will be lost and text objects will comply with the assigned Text Style.

Option 2 - STRIPMTEXT (Recommended)

*** for more information on the STRIPMTEXT AutoLISP, CLICK HERE (cadabyss - Steve Doman)
  • Download the AutoLISP file: StripMtext v5.0c.lsp and save it to an applicable location.
  • On the AutoCAD command line, enter 'APPLOAD' (or alternatively under the 'Manage' Ribbon, or via the AutoCAD pulldown menu 'Tools').
  • Browse to the location you saved the StripMtext v5.0c.lsp file, click 'Load' and then click 'Close'.
  • On the AutoCAD command line, enter STRIPMTEXT and press 'Enter'.
  • Within the provided dialog box, select the criteria (as applicable).
The example below (copied from cadabyss - link above) provides a demonstration of STRIPMTEXT in action. For additional examples, please refer to the cadabyss link as provided.

Important: this AutoLISP will only work with alphanumeric characters. For special characters, such as Korean or Chinese, you will need to explode the MTEXT to remove the formatting.

Autodesk Knowledge Network - Reference Link