- In any 2022R2 Ansys Mechanical Solution right click and Insert — Python Code
- Set the Target Callback to After Solve
- Under Advanced, set the Engine Type to Cpython.
- Copy and paste the script below into the Python Code window (overwrite the default text):
- Right click on your Python Code object and Connect
Connect Python Code Object
- Resolve your model.
Simple Plot
The plot is also saved to the working directory.