Table of Contents
Introduction to Scripting
What is ACT?
What is the ACT Console?
Command Line Usage
Snippets
Key Usage Concepts
Additional Resources
Script Examples
Script Examples for Selection
Select Geometry or Mesh in a 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
Script Examples for Interacting with Tree Objects
Delete an Object
Refresh the Tree
Count the Number of 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
Change Tabular Data Values of a Standard Load or Support
Duplicate an Harmonic Result Object
Export a Result Object to an STL File
Export Result Images to Files
Work with Solution Combinations
Create a Pressure Load
Script Examples for Interacting with the Mechanical Session
Remesh a Model Multiple Times and Track Metrics
Scan Results, Suppress Any with Invalid Display Times, and Evaluate
Check Version
Check Operating Environment
Retrieve Stress Results
Search for Keyword and Export
Modify Export Setting
Refresh the Messages Box
Release 18.2 - © ANSYS, Inc. All rights reserved.