This video shows how you can use the $RunMacroAfter and $RunMacroBefore directives in EES to run a macro either once calculations are complete or before they start, respectively.
00:00 The $RunMacroAfter Directive
01:00 Using the directives
02:00 An Example
04:00 Coding the simulation
07:00 Building the Macro
10:00 Implementing the $RunMacroAfter directive