Repeat Commands in Macros (Concept)

AutoCAD

 
Repeat Commands in Macros
Concept Quick Reference
 
 
 

You can use a leading asterisk (*) to repeat a command in a macro until you choose another command.

Once you have selected a command, you might want to use it several times before moving on to another command. In a macro, you can repeat a command until you choose another command. You cannot use this feature to choose options.

If a macro begins with *^C^C, the command is repeated until you terminate by pressing ESC on the keyboard or by selecting another command.

NoteDo not use ^C (Cancel) within a macro that begins with the string *^C^C; this cancels the repetition.

The macros in the following examples repeat the commands:

*^C^Cmove Single 
*^C^Ccopy Single 
*^C^Cerase Single 
*^C^Cstretch Single Crossing 
*^C^Crotate Single 
*^C^Cscale Single 

Each macro in the example starts a command and then prompts you to select an object. Any other prompts necessary to complete the command are displayed, and then the command ends and starts again.

NoteCommand repetition cannot be used in macros for image tile menus.