Create Macros
Create Macros
Pause for User Input in Macros
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 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.
Special
characters used in macros
|
Character
|
Description
|
;
|
Issues
ENTER
|
^M
|
Issues
ENTER
|
^I
|
Issues
TAB
|
[blank
space]
|
Enters
a space; a blank space between command sequences in a command is
equivalent to pressing the SPACEBAR
|
\
|
Pauses
for user input (cannot be used with accelerators)
|
.
|
Allows you to access a built-in AutoCAD command
even if it was undefined using the UNDEFINE command.
|
_
|
Translates AutoCAD commands
and options that follow
|
=*
|
Displays
the current top-level pull-down, shortcut, or image menu
|
*^C^C
|
Repeats
a command until another command is chosen
|
$
|
Introduces
a conditional DIESEL macro expression ($M=)
|
^B
|
Turns Snap
on or off (equivalent to CTRL+B)
|
^C
|
Cancels
the active command or command option (equivalent to ESC)
|
^D
|
Turns Dynamic
UCS on or off (equivalent to CTRL+D)
|
^E
|
Sets the
next isometric plane (equivalent to CTRL+E)
|
^G
|
Turns Grid
on or off (equivalent to CTRL+G)
|
^H
|
Issues
BACKSPACE
|
^O
|
Turns Ortho
on or off
|
^P
|
Turns MENUECHO
on or off
|
^Q
|
Echoes
all prompts, status listings, and input to the printer (equivalent to
CTRL+Q)
|
^T
|
Turns tablet
on or off (equivalent to CTRL+T)
|
^V
|
Changes
the current viewport
|
^Z
|
Null character
that suppresses the automatic addition of SPACEBAR at the end of
a command
|