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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NOTE LAYER normally prompts for another operation and exits only if you press<br />

SPACEBAR or ENTER. In the macro, the semicolon (;) is the equivalent of pressing<br />

ENTER.<br />

A macro typically resumes after one user input, such as a single point location.<br />

Therefore, you cannot construct a macro that accepts a variable number of<br />

inputs (as in object selection) and then continues. However, an exception is<br />

made for SELECT: a backslash (\) suspends the SELECT command until object<br />

selection has been completed. Consider the following example:<br />

select \change previous ;properties color red ;<br />

In this macro, SELECT creates a selection set of one or more objects (select \).<br />

The macro then starts CHANGE (change), references the selection set using<br />

the Previous option (previous;), and changes the color of all selected objects<br />

to red (properties color red ;).<br />

NOTE The backslash character (\) causes a macro to pause for user input. You<br />

cannot use a backslash for any other purpose in a macro. When you need to specify<br />

a file directory path, use a forward slash (/) as the path delimiter: for example,<br />

/direct/file.<br />

The following circumstances delay resumption of a macro after a pause:<br />

■ If input of a point location is expected, object snap modes may be used<br />

before the point is specified.<br />

■ If X/Y/Z point filters are used, the command remains suspended until the<br />

entire point has been accumulated.<br />

■ For SELECT only, the macro does not resume until object selection has<br />

been completed.<br />

■ If the user responds with a transparent command, the suspended macro<br />

remains suspended until the transparent command is completed and the<br />

originally requested input is received.<br />

■ If the user responds by choosing another command (to supply options or<br />

to execute a transparent command), the original macro is suspended, and<br />

the newly selected item is processed to completion. Then, the suspended<br />

macro is resumed.<br />

Create Macros | 107

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

Saved successfully!

Ooh no, something went wrong!