9.5.5 Creating and running a macro

The Macro Manager allows you to record a sequence of ABAQUS Scripting Interface commands in a macro file while you interact with ABAQUS/CAE. Each command corresponds to an interaction with ABAQUS/CAE, and replaying the macro reproduces the sequence of interactions. You can use a macro to automate tasks that you find yourself performing repeatedly, such as printing the current viewport or applying a predefined view. For more information on ABAQUS Scripting Interface commands, see the ABAQUS Scripting User's Manual.

Macros are stored in a file called abaqusMacros.py. ABAQUS/CAE searches three directories for abaqusMacros.py, in the following order:

The abaqusMacros.py file can exist in more than one of these directories. The Macro Manager contains a list of the existing macros that ABAQUS/CAE detected in all of the abaqusMacros.py files. If a macro uses the same name in more than one abaqusMacros.py file, ABAQUS/CAE uses the last macro encountered.

To create, delete, or run a macro, select FileMacro Manager from the main menu bar. For more information, see Managing macros, Section 9.10.