New CADforum look launched.
Over 1.089.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new Engineering calculator. New AutoCAD 2026 commands and variables.
Over 1.089.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new Engineering calculator. New AutoCAD 2026 commands and variables.
CAD tip # 8640:
Question
A
Paragraph texts in AutoCAD can contain control codes which influence appearance of the text. These formatting control codes are automatically inserted in the internal MText editor. But if you edit your texts with an alternative editor (e.g. Notepad), or if you generate them programmatically, you can use these codes to format your paragraph texts.
Code | Function | ||||
---|---|---|---|---|---|
\L | Start underline | ||||
\l | Stop underline | ||||
\O | Start overstrike | ||||
\o | Stop overstrike | ||||
\K | Start strike-through | ||||
\k | Stop strike-through | ||||
\N | New column | ||||
\P | New paragraph (new line) | ||||
\pi \pxi \pxt \pxq | Control codes for bullets, numbered paragraphs, tab stops and columns - e.g. bullets: \pxi-3,l3,t3;, tab stops: \pxt10,t12; (l=left offset, t=tab spacing), justification: \pxql;=left, \pxqr;=right, \pxqc;=center, \pxqj;=block-justified, \pxqd;=distributed example:
| ||||
\X | Paragraph wrap on the dimension line (only in dimensions) | ||||
\Q | Slanting (obliquing) text by angle - e.g. \Q30; | ||||
\H | Text height - e.g. \H3x; | ||||
\W | Text width - e.g. \W0.8x; | ||||
\F | Font selection
| ||||
\S | Stacking, fractions
| ||||
\A | Alignment
| ||||
\C | Color change (ACI colors)
You can also use \c and a combination of ACI color index and truecolor long code or color book (see color converter) - like this:
| ||||
\T | Tracking, char.spacing - e.g. \T2; | ||||
\~ | Non-wrapping space, hard space | ||||
{} | Braces - define the text area influenced by the code | ||||
\ | Escape character - e.g. \\ = "\", \{ = "{" |
Codes and braces can be nested up to 8 levels deep. Formatting codes can be removed via the context menu in the MText editor.
ACADACLT


21.5.2012
107518×
FAQ
applies to: AutoCAD · AutoCAD LT ·