Use Special Control Characters in Macros (Concept)
From AutoCAD
|
|
|
|
|
|
|
You can use special characters, including control characters, in macros. In a macro, the caret (^) is equivalent to pressing the CTRL key on the keyboard. You can combine the caret with another character to construct macros that do such things as turn the grid on and off (^G) or cancel a command (^C).
The macro for the Address command below uses the backslash (\) to pause for user input and the semicolon (;) for ENTER.
text \.4 0 DRAFT Inc;;;Main St.;;;City, State;
The macro starts the TEXT command, pauses for the user to specify a start point, and then enters the address on three lines. In the triple semicolon (;;;), the first semicolon ends the text string, the second repeats TEXT, and the third accepts the default placement below the previous line.
Macros use the special characters listed in the following table.