The imports.py
module#
Summary#
A class to speed up bulk user interactions using Ansys ACT Mechanical Transaction. |
Return the global entry points of the application. |
|
Return the Mechanical scripting global variables as a dict. |
|
Get all the enums as a dictionary. |
Description#
Additional imports for embedded Mechanical.
Module detail#
- imports.global_entry_points(app: ansys.mechanical.core.App) Dict #
Return the global entry points of the application.
- imports.global_variables(app: ansys.mechanical.core.App, enums: bool = False) Dict #
Return the Mechanical scripting global variables as a dict.
It can be used to add all of these as global variables in python with this command:
globals().update(global_variables(embedded_app))
To also import all the enums, set the parameter enums to true.