Macro Record / Play
You may record the steps that you perform in the product for re-use by using the macro record option. Apex macros use python scripts to perform actions in the application. You may optionally edit these recorded macros before replaying them using the macro play option. Referring to the API documentation will help you achieve the proper syntax as you write or edit macros. The Application Programming Interface (API) documentation is accessible here.
To record a Macro:
Select Record Macro from the Macro menu or press the Record Macro button at the top right of the menu bar.

This will open the Record Macro form, where you can specify the location and filename to save the Macro.

As you perform tasks in MSC Apex, the steps you perform will be recorded to the Python macro file you specified. Once you are finished with the steps to record, you can stop the macro recording by pressing the Stop Recording button in the menu bar.

Note: Currently the Macro Record process does not support all tools within MSC Apex. While this will be improved in future releases, the following operations are not supported for Macro record:
- Auto Thickness midsurface attribution operations
- Interface Points definition for .MNF file export
- X- Section force sensors
- Duplicating Beam Shapes
- Behaviors Specification
- System Damping
- Application Settings
- Import and Export Operations
- Geometry Cleanup
- Incremental Meshing
- Feature Mesh Settings
- Structures Study and Scenario Definitions
Editing a Macro:
You may edit a recorded macro (or write your own from scratch) using a text editor.

To Play a Macro:
To play a recorded or written macro, select Play Macro from the Macro menu or press the Play Macro button at the top right of the menu bar.

This will open a window that allows you to select an Apex macro file. Once you select a file and click open, MSC Apex will follow the steps in the referenced Macro file. Once the playback is complete, MSC Apex will show the following message:

- Log in to post comments
