Complete example for scripting window
Open View → Scripting in Mechanical and enter:Expected output in scripting window
Using in a Python Result object
You can also inspect results within a Python Result object:Key concepts
- ExtAPI: Mechanical API for accessing the model tree
- DataSources: Points to result files from Mechanical solutions
- Model: DPF model provides access to all data
- Mesh: Contains geometry information
- TimeFreqSupport: Time/frequency metadata
Next steps
- Extract Displacement - Get displacement data
- User Guide - Learn about fields