• icon
  • Scripting in Mechanical Guide
  • back
  • forward
Contents
closeexpand
Scripting Examples |
Print page

Script Examples for Interacting with Tree Objects

The following scripts are for interacting with tree objects in Mechanical:

  • 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
« Create Aligned Coordinate Systems in a Motor 
 Delete an Object »

Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Release 2024 R2 - © ANSYS, Inc. All rights reserved.