2012

Table Of Contents
Overview of Macros
A macro can contain commands, special characters, DIESEL (Direct
Interpretively Evaluated String Expression Language) or AutoLISP programming
code.
NOTE
As AutoCAD for Mac is revised and enhanced, the sequence of prompts for
various commands (and sometimes command names) might change. Therefore,
your custom macros might require minor changes when you upgrade to a
new release of AutoCAD for Mac.
You add macros to interface elements by using the Customize dialog box.
Select an existing command or create a new command in the Commands list
on the Commands tab. Enter a macro in the Macros text box under the
Properties section. There are no length limitations for macros. However, you
do need to know how specific characters are used in macros and be aware of
other considerations or limitations.
Macro Basics
A macro in a user interface element can be as simple as a command (such as
circle) and some special characters (such as ^C^C).
For example, the macro ^C^C_circle \1, draws a circle with a radius of 1 unit.
The components that define this macro are explained in the table below.
Components in CIRCLE macro
ResultComponent
type
Component
Cancels any running commandsSpecial control charac-
ter
^C^C
Automatically translates the command
that follows into other languages
Special control charac-
ter
_
Starts the CIRCLE commandCommandCIRCLE
38 | Chapter 4 User Interface Customization