The imports.py module#

Summary#

Transaction

A class to speed up bulk user interactions using Ansys ACT Mechanical Transaction.

global_entry_points

Return the global entry points of the application.

global_variables

Return the Mechanical scripting global variables as a dict.

get_all_enums

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.

imports.get_all_enums() Dict[str, Any]#

Get all the enums as a dictionary.