AEDTCommon#
- class ansys.aedt.toolkits.common.backend.api.AEDTCommon(backend_properties: ThreadManager | None = None)[source]#
Provides common functions for controlling AEDT.
This class provides basic functions for controlling AEDT and properties to share between the backend and UI.
- Parameters:
- backend_properties
backend.models.Properties
Updated properties.
- backend_properties
Examples
>>> from ansys.aedt.toolkits.common.backend.api import AEDTCommon >>> toolkit_api = AEDTCommon() >>> msg = toolkit_api.launch_aedt()
Methods
Get information for the active AEDT sessions.
Connect to an existing AEDT session.
AEDTCommon.connect_design
([app_name])Connect to an application design.
AEDTCommon.export_aedt_model
([obj_list, ...])Export the model in the OBJ format and then encode the file if the
encode
parameter is enabled.Get the design names for a specific project.
AEDTCommon.get_project_name
(project_path)Get the project name from the project path.
Get the toolkit properties.
Get the toolkit thread status.
Get the installed AEDT versions.
Check if AEDT is connected.
Launch AEDT.
AEDTCommon.launch_thread
(process)Launch the thread.
AEDTCommon.open_project
([project_name])Open an AEDT project.
AEDTCommon.release_aedt
([close_projects, ...])Release AEDT.
AEDTCommon.save_project
([project_path, ...])Save the project.
AEDTCommon.serialize_obj_base64
(file_path)Encode a bytes-like object.
Assign the passed data to the internal data model.
AEDTCommon.wait_to_be_idle
([timeout])Wait for the thread to be idle and ready to accept a new task.