Make Text Right-Side Up (TROT)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | TROT |
|---|---|
| Category | Text Tools |
| Author | Michael Flynn |
| Source | mf4633/C3D-AutoCAD |
| License | MIT |
| Version | 1.1 |
| Updated | 2026-05-20 |
| Requirements | AutoCAD (including LT 2024 and later), BricsCAD and other CAD programs with AutoLISP. No Express Tools needed. |
| Prompt language | English |
| Files | trot.lsp (1 KB) |
| Added | 2026-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
- Load trot.lsp with APPLOAD.
- Type TROT at the command line.
- 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.
- trot.lsp (1 KB)
- License text
References
- Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
- Author: Michael Flynn – https://github.com/mf4633
- 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