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.

Terminate Macros<br />

Some macros require special terminators. Some commands (TEXT, for example)<br />

require you to press ENTER rather than SPACEBAR to terminate the command.<br />

Some commands require more than one space (or ENTER) to complete, but<br />

some text editors cannot create a line with trailing blanks.<br />

Two special conventions resolve these problems.<br />

■ A semicolon (;) in a macro automatically issues ENTER at the command<br />

prompt.<br />

■ If a line ends with a control character, a backslash (\), a plus sign (+), or a<br />

semicolon (;), AutoCAD LT does not add a blank space after it.<br />

An item that ends with a backslash (\) pauses a macro for user input.<br />

Compare the following macros:<br />

ucs<br />

ucs ;<br />

The first example enters ucs at the command prompt and presses SPACEBAR.<br />

The following prompt is displayed.<br />

Specify origin of UCS or<br />

[Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] :<br />

The second example enters ucs, presses SPACEBAR, and presses ENTER, which<br />

accepts the default value (World).<br />

Suppress Echoes and Prompts in Macros<br />

Characters in a macro appear in the command window as though you had<br />

typed the characters on the keyboard. They are also displayed in the user<br />

interface element. This display duplication is called “echoing”. You can<br />

suppress the “echoed” displays with the MENUECHO system variable. If echoes<br />

and prompts from item input are turned off, a ^P in the item turns them off.<br />

Create Long Macros<br />

You can create a macro of any length, without requiring any special characters<br />

at the end of a line. The Properties pane in the Customize User Interface (CUI)<br />

Editor accepts a macro of any length.<br />

Create Macros | 103

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

Saved successfully!

Ooh no, something went wrong!