81
Animation Export Example
• One example of how to use this feature would be via the Workbench scripting
console
• Open the console and run:
‐ Simulation.RunScript(FilePath="", IsMeshing=False,
ModelName="")
• The FilePath parameter should be a string representing the path to a Mechanical scripting file (Python file utilizing
Mechanical APIs, such as .ExportAnimation(…))
• ModelName comes from the model cell in the Workbench schematic that you want to run this script for
▪ Right-click the cell and click properties to open the cell's properties. The "General > Component ID" property should contain the name
to use