Macros enable you to create automatic routines for repetitive operations. For example, you might want to loop through all the surfaces in a model and change the colours. Macros are usually created by recording a sequence of operations. The resulting file can then be edited using a text editor. The macro language is covered in Customising PowerShape.
Select this option to run a previously recorded macro.
Select this option to run the macro one step at a time. If there is a macro nested within the macro you are stepping, the nested macro is run. You are then returned to the macro you are stepping through. A nested macro is one which is initialized within a macro that is already running.
Select this option to run the selected macro and any nested macros to be run one line at a time.
Use this option to run the remainder of a stepping macro.
This will run the remainder of the macro rather than step through it.
This option is only available when the macro is stepping.
When issued, the command prompts for a regular expression. It will then run the macro up to and including the first line that contains the regular expression. It will then revert to stepping.
The regular expressions used are based on Perl and are caseless, so if the macro is:
if ($error == 1) {
print e1
} elseif ($error == 2) {
print e2
}
the following expressions would all match the last but one line:
print e2
p.*2
PRINT E2
The advantage of this command is that it makes it easier to step through long macros or macros that include modal dialogs. Other techniques to do this require editing the macro.
Use this option to stop a running or stepping macro.
Select this option to record a macro.
If you enter the name of an existing file, it is overwritten with the new commands.