eplisp

Make Text Right-Side Up (TROT)

eplisp, the free multilingual LISP library

Make Text Right-Side Up (TROT)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsTROT
CategoryText Tools
AuthorMichael Flynn
Sourcemf4633/C3D-AutoCAD
LicenseMIT
Version1.1
Updated2026-05-20
RequirementsAutoCAD (including LT 2024 and later), BricsCAD and other CAD programs with AutoLISP. No Express Tools needed.
Prompt languageEnglish
Filestrot.lsp (1 KB)
Added2026-10-26
Download the original fileSource repository

Finds upside-down TEXT, MTEXT and ATTDEF objects (rotation between 90° and 270°) in a selection and turns them 180° so they read left to right.

TROT is a text cleanup command from Michael Flynn's Civil 3D/AutoCAD collection. Labels aligned to lines or coming from rotated blocks often end up upside down; this command fixes the upside-down ones in a selection in one go.

Overview

Each object's rotation is normalized to 0–360°. If it is between 90° and 270° (exclusive), 180° is subtracted and the object is updated; other text is left alone.

How to use it

  1. Load trot.lsp with APPLOAD.
  2. Type TROT at the command line.
  3. Select the text to check and press Enter.

Notes and limitations

  • Text turns around its own insertion/alignment point, so depending on the justification it may move to the other side of a line.
  • Text at exactly 90° or 270° is not changed.
  • The count reported at the end is the number of selected objects, not the number actually rotated.
  • MTEXT also stores its direction as a vector, so check the result on MTEXT.
  • The repository is new (2026); test the routine on a copy of the drawing first.

Source and license

This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.

References

  1. Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
  2. Author: Michael Flynn – https://github.com/mf4633
  3. License: MIT – https://github.com/mf4633/C3D-AutoCAD/blob/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal