Common#
- class ansys.aedt.toolkits.common.backend.api.Common(backend_properties=None)[source]#
Provides the API for controlling the toolkits.
This class provides basic functions to control AEDT and EDB and the 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 Common >>> toolkit_api = Common() >>> toolkit_properties = toolkit_api.get_properties() >>> new_properties = {"aedt_version": "2024.2"} >>> toolkit_api.set_properties(new_properties) >>> new_properties = toolkit_api.get_properties()
Methods
Get information for the active AEDT sessions.
Get the toolkit properties.
Get the toolkit thread status.
Get the installed AEDT versions.
Common.launch_thread
(process)Launch the thread.
Common.serialize_obj_base64
(file_path)Encode a bytes-like object.
Common.set_properties
(data)Assign the passed data to the internal data model.
Common.wait_to_be_idle
([timeout])Wait for the thread to be idle and ready to accept a new task.