Playing Macros Within Macros

For greater automation of your simulation work, you can create a macro that calls other macros.

To create this kind of macro, play a macro while you record one. For example, suppose that you have a group of simulations that involve similar subtasks, such as working with the same types of field functions and reports.

Do the following:

  1. Record a macro for each subtask, such as createFieldFunctions.java or createReports.java.
  2. As you record the simulation macro, play the subtask macro.


    Alternatively, for your subsequent simulations, you can manually edit the macro files to copy and paste the references to the macros of the subtasks.