Text Commands
Text Commands
Text commands are used to create and edit text annotations.
TEXT - Single-Line Text
Creates single-line text.
Command Name: TEXT
Alias: DT
Usage
Command: TEXT
Text insert
<Text dialog opens>
Specify point [Dialog(D)]: <Click insertion location>Dialog Settings
| Setting | Description |
|---|---|
| Content | Enter text content |
| Height | Set text height (mm) |
| Alignment | Select alignment method |
| Font | Select font |
Alignment Options
| Option | Description |
|---|---|
L | Bottom-left (default) |
C | Bottom-center |
R | Bottom-right |
ML | Middle-left |
MC | Middle-center |
MR | Middle-right |
TL | Top-left |
TC | Top-center |
TR | Top-right |
Options
| Option | Description |
|---|---|
D | Reopen the dialog to modify settings |
MTEXT - Multiline Text
Creates multiline text (paragraph text).
Command Name: MTEXT
Alias: MT, T
Usage
Command: MTEXT
Multiline text
<Multiline text dialog opens>
Specify point: <Click insertion location>Dialog Settings
| Setting | Description |
|---|---|
| Content | Enter multiline text content (supports line breaks) |
| Height | Set text height (mm) |
| Alignment | Select alignment method |
| Font | Select font |
Alignment Options
| Option | Description |
|---|---|
TL | Top-left (default) |
TC | Top-center |
TR | Top-right |
ML | Middle-left |
MC | Middle-center |
MR | Middle-right |
BL | Bottom-left |
BC | Bottom-center |
BR | Bottom-right |
TEXTEDIT - Edit Text
Edits existing single-line text.
Command Name: TEXTEDIT
Usage
Command: TEXTEDIT
Select text: <Click the text to edit>
<Text editing dialog opens>
Modified.Shortcut
Double-click a text object to enter edit mode directly.
TEXTCOPY - Text String Copy
Copies the content of one text to another text.
Command Name: TEXTCOPY
Usage
Command: TEXTCOPY
Text string copy
Select source text <last content>: <Select source text>
Select target text: <Select target text>
"xxx" copied.JUSTIFYTEXT - Adjust Text Alignment
Modifies the justification of text.
Command Name: JUSTIFYTEXT
Usage
Command: JUSTIFYTEXT
Select objects: <Select text>MAGTEXT - Scale Text
Adjusts text size.
Command Name: MAGTEXT
Usage
Command: MAGTEXT
Select objects: <Select text>
Specify scale factor: <Enter scale factor>TXT2MTXT - Single-Line to Multiline
Converts single-line text to multiline text.
Command Name: TXT2MTXT
Usage
Command: TXT2MTXT
Select objects: <Select single-line text>ALIGNMENTTEXT - Align Text
Aligns text with a specified object.
Command Name: ALIGNMENTTEXT
ANGLETEXT - Angle Text
Creates text along a specified angle direction.
Command Name: ANGLETEXT
BURSTTEXT - Explode Text
Explodes multiline text into single-line text.
Command Name: BURSTTEXT
Usage
Command: BURSTTEXT
Select objects: <Select multiline text>Special Characters
Special character codes can be used in text:
| Code | Display | Description |
|---|---|---|
%%C | Ø | Diameter symbol |
%%D | ° | Degree symbol |
%%P | ± | Plus/minus sign |
%%U | _ | Underline toggle |
%%O | - | Overline toggle |
\P | Line break | Multiline text line break |
Text Best Practices
Text Layer
It is recommended to place text on a separate layer:
CLAYER
Text
TEXT
...Text Scale
Set text height according to the drawing scale:
- For 3mm printed height on a 1:100 drawing, set height to 300
- For 5mm printed height on a 1:50 drawing, set height to 250
Script Example
; Single-line text requires entering content in the dialog then clicking the location
TEXT
<Enter content in dialog>
500,1000
; Multiline text also requires the dialog
MTEXT
<Enter content in dialog>
0,800Next Steps
- Inquiry Commands - Measurement and query information
- Dimension Commands - Create dimension annotations
- Command Reference - View all commands