Collapse all
/- Scripting Quick Start
- Scripting Introduction
- Key Usage Concepts
- Threading
- Using Scripts to Create User-Defined Buttons
- Using the Python Code Object
- Using the Python Result Object
- Additional Resources
- Mechanical APIs
- Mechanical API Introduction
- API Reference Guide
- Mechanical API Notes
- Object Access
- Boundary Conditions
- Worksheets
- Graphics
- Results
- Other APIs
- Scripting Examples
- Script Examples for Selection
- Select Geometry or Mesh in the Graphics Window
- Get Tree Object of a Body Corresponding to a Selected Body
- Get GeoData Body Corresponding to a Tree Object of a Body
- Query Mesh Information for Active Selection
- Use an Existing Graphics Selection on a Result Object
- Calculate Sum of Volume, Area, and Length of Scoped Entities
- Create a Named Selection from the Scoping of a Group of Objects
- Create a Named Selection that Selects All Faces at a Specified Location
- Rescope a Solved Result Based on the Active Node or Element Selection
- Scope a Boundary Condition to a Named Selection
- Add a Joint Based on Proximity of Two Named Selections
- Print Selected Element Faces
- Get Normal of a Face
- Create a Selection Based on the Location of Nodes in Y
- Create Aligned Coordinate Systems in a Motor
- Script Examples for Interacting with Tree Objects
- Delete an Object
- Refresh Tree and Pause Tree
- Clear the Mesh
- Get All Visible Properties for a Tree Object
- Parametrize a Property for a Tree Object
- Create Construction Lines from Cylindrical Faces
- Update Geometries for all Construction Lines
- Create Material Assignment from Body Materials
- Count the Number of Contacts
- Suppress Duplicate Contacts
- Verify Contact Size
- Set Pinball to 5mm for all Frictionless Contacts
- Use a Named Selection as Scoping of a Load or Support
- Suppress Bodies Contained in a Given Named Selection
- Rename a Named Selection Based on Scoping
- Modify the Scoping on a Group of Objects
- Change Tabular Data Values of Loading Condition
- Duplicate an Harmonic Result Object
- Retrieve Object Details Using SolverData APIs
- Evaluate Spring Reaction Forces
- Export a Result Object to an STL File
- Export Result Images to Files
- Tag and Group Result Objects Based on Scoping and Load Steps
- Work with Solution Combinations
- Create a Pressure Load
- Create a Convection Load
- Create Node Merge Object at a Symmetry Plane
- Access Contour Results for an Evaluated Result
- Write Contour Results to a Text File
- Access Contour Results at Individual Nodes/Elements
- Set Arbitrary Coordinate System Properties
- Transform Coordinate Systems (with Math)
- Select Objects By Name
- Export Figures
- Script Examples for Interacting with the Mechanical Session
- Remesh a Model Multiple Times and Track Metrics
- Perform Solution While Specifying Solution Handler and the Number of Cores
- Scan Results, Suppress Any with Invalid Display Times, and Evaluate
- Check Version
- Check Operating Environment
- Search for Keyword and Export
- Modify Export Setting
- Pan the Camera
- Functions to Draw
- Export All Result Animations
- Get User Files Directory
- Display an Arrow at the Centroid of Selected Faces
- Compute Shortest Distance Between Two Faces
- Display Extensions Loaded in Mechanical
- Script Examples for Interacting with Results
- Examples Using the Python Code Object
- End-to-End Analysis Examples
- Static Structural Analysis
- Static Structural Spatially Varying Load Analysis
- Transient Structural Analysis
- Static Structural General Joint Analysis
- Static Structural Universal Joint Analysis
- Transient Structural Cylindrical Joint Analysis
- Symmetric Symmetry Analysis
- Linear Periodic Symmetry Analysis
- Cyclic Symmetry Analysis
- Steady-State Thermal Analysis
- Transient Thermal Analysis
- Coupled Field Static Analysis
- Coupled Field Harmonic Analysis
- Coupled Field Transient Analysis
- Coupled Field Modal Analysis
- Fracture Analysis: Semi-Elliptical Crack
- Fracture Analysis: SMART Crack Growth
- Fracture Analysis: Contact Debonding
- Fracture Analysis: Interface Delamination
- Harmonic Acoustic Analysis
- Modal Acoustic Analysis
- Structural Optimization (Density Based) Analysis
- Structural Optimization (Level Set Based) Analysis
- Structural Optimization Lattice Analysis
- Structural Optimization Shape Optimization Analysis
- Rigid Dynamics: Contact Specification
- Rigid Dynamics: Flexible Part Specification
- Rigid Dynamics: General Analysis
- Rigid Dynamics: Joint Specification
- Rigid Dynamics: Variable Load Specification
- Steady State Electric Conduction Analysis
- Steady-State Thermal-Electric Conduction Analysis
- Magnetostatic Analysis
- Post Processing Options
- Post Processing User Defined Results
- Random Vibration Analysis
- Static Structural Analysis using External Model