Next: Where to Use Up: Basics Previous: How to Create

## How to Call a Macro ?

To work through a macro the CAD-command

           RUN "filename"!

has to be put in.

The system opens the macro file and executes the commands one after the other. If an error occurs during interpreteing the execution of the commands is interrupted and the file closed.

With the help of the RUN-command a macro may be called even within another macro. In theory, any nesting depth is possible. An abort in the first macro however leads to a total abort of the whole macro hierarchy.
Another method to execute a macro is to call SISCAD-P in batch operation.

           siscadp macrofilename

The program starts, executes the macro and finishes itself. In connection with the SAVE - commands within the macro, the user may have his drawings as well as the necessary plot files created over night.