You can access project-level APIs off the master ExtAPI
entry
point.
- Project
The top level of the hierarchy is the framework-level project. It provides additional entry points to the Workbench data model, file manager, and so on. It is accessed as follows:
project = ExtAPI.DataModel.Project
- Context
This is the framework-level command context. It provides additional entry points to the session and project utilities. It is accessed as follows:
context = ExtAPI.DataModel.Context
- Tasks
This is all of the tasks in the Project Schematic, which includes both ACT-defined and Ansys-installed tasks. It does not include the “master task” level, such as ACT and Project Schematic “template-like” tasks. Only concrete task instances are included. It is accessed as follows:
tasks = ExtAPI.DataModel.Tasks
- Task Groups
This is all of the task groups in the Project Schematic, which includes both ACT-defined task groups and Ansys-installed task groups. It does not include the “master task group” level, such as ACT and Project Schematic “template-like” task groups. Only concrete task group instances are included. It is accessed as follows:
taskGroups = ExtAPI.DataModel.TaskGroups
Note: This section provides only the top-level API access points to Project
Schematic and workflow-related data. For a comprehensive list of APIs
for custom workflows, see the <workflow>
section of the
Ansys ACT API Reference
Guide.