03.01.2013 Views

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For example, the macro ^C^C_circle \1, draws a circle with a radius of 1 unit.<br />

The components that define this macro are explained in the table below.<br />

Components in CIRCLE macro<br />

Component<br />

^C^C<br />

_<br />

CIRCLE<br />

\<br />

1<br />

Component type<br />

Special control character<br />

Special control character<br />

Command<br />

Special control character<br />

Special control character<br />

Result<br />

Cancels any running commands<br />

Automatically translates the command<br />

that follows into other languages<br />

Starts the CIRCLE command<br />

Creates a pause for the user to specify<br />

the center point<br />

Responds to the prompt for the circle's<br />

radius (1)<br />

For a list of special control characters that you can use in macros, see Use<br />

Special Control Characters in Macros on page 104.<br />

Cancel Running Commands<br />

Make sure that you have no AutoCAD LT commands in progress before you<br />

execute a macro. To automatically cancel a command before executing a<br />

macro, enter ^C^C at the beginning of the macro (which is the same as pressing<br />

ESC twice). Although a single ^C cancels most commands, ^C^C is required to<br />

return to the command prompt from a dimensioning command and ^C^C^C<br />

is required based on the current option of the Layer command. ^C^C handles<br />

canceling out of most command sequences and therefore is the recommended<br />

sequence used to ensure no command is active before the macro is started.<br />

Verify Macro Characters<br />

Every character in a macro is significant, even a blank space.<br />

When you place a space at the end of the macro, AutoCAD LT processes the<br />

macro as though you had entered a command (circle, for example) and then<br />

pressed the SPACEBAR to complete the command.<br />

102 | Chapter 4 User Interface <strong>Customization</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!