2013

Table Of Contents
Two special conventions resolve these problems.
A semicolon (;) in a macro automatically issues Enter at the Command
prompt.
If a line ends with a control character, a backslash (\), a plus sign (+), or a
semicolon (;), AutoCAD does not add a blank space after it.
An item that ends with a backslash (\) pauses a macro for user input.
Compare the following macros:
ucs
ucs ;
The first example enters ucs at the command prompt and presses Spacebar.
The following prompt is displayed.
Specify origin of UCS or
[Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] <World>:
The second example enters ucs, presses Spacebar, and presses Enter, which
accepts the default value (World).
Suppress Echoes and Prompts in Macros
Characters in a macro appear at the command line as though you had typed
the characters on the keyboard. This display duplication is called echoing.
You can suppress the echoed displays with the MENUECHO system variable.
If echoes and prompts from item input are turned off, a ^P in the item turns
them off.
Use Special Control Characters in Macros
You can use special characters, including control characters, in macros. In a
macro, the caret (^) is equivalent to pressing the Command 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;
42 | Chapter 4 User Interface Customization