eplisp

AutoCAD Change Text Height LISP: Height, Rotation, Style

Changes the height, rotation, style or width factor of many selected texts with one command.

Download txtmod.lsp17 KB · Free
Commands: TXTMOD

Load the downloaded .lsp file with the APPLOAD command in AutoCAD or GstarCAD, then type the command name. How to load a LISP file

Download all tools in one file (138 KB)

TXTMOD is a small AutoCAD change text height LISP that edits many texts at once. You select TEXT and MTEXT objects, choose what to change (Height, Rotation, Style or Width) and type the new value. Every selected text gets the same value in one pass.

You can do some of this in the Properties palette, but TXTMOD keeps everything on the command line and reports how many texts it changed. Rotation is measured in the current UCS, so texts can be lined up with a rotated UCS.

All changes are wrapped in a single undo group, so one U command restores the drawing if the result is not what you wanted.

How to use it

  1. Load the file with APPLOAD and type TXTMOD on the command line.
  2. Select the texts to change and press Enter; only TEXT and MTEXT objects are picked up.
  3. Choose what to change: Height, Rotation, Style or Width (Enter defaults to Height).
  4. Type the new value; height and rotation can also be shown by picking two points.
  5. Check the command line for the number of texts that were changed.

Notes and tips

  • The width factor applies to single-line TEXT only; MTEXT objects are skipped for that option.
  • MTEXT parts that carry inline formatting (for example a height set inside the text editor) can keep their own size regardless of the object height.
  • For the Style option the style name must already exist in the drawing; otherwise nothing is changed and a message is shown.
  • Texts inside blocks and block attributes are not changed by this tool.

Frequently asked questions

How do I change the height of many texts at once in AutoCAD?

Run TXTMOD, select the texts and choose Height, then type the new value. Every selected TEXT and MTEXT object gets that height.

Does the rotation follow the current UCS?

Yes. The angle you enter for Rotation is read in the current UCS and converted before it is applied to the texts.

Can I undo the change?

Yes. The whole operation is one undo group, so a single U command reverts all changed texts.