ToolkitBackend#
- class ansys.aedt.toolkits.magnet_segmentation.backend.api.ToolkitBackend[source]#
Provides methods for controlling the toolkit workflow.
This class provides methods for creating an AEDT session, connecting to an existing AEDT session, and automating the segmentation and skew of a 3D motor model.
Examples
>>> from ansys.aedt.toolkits.magnet_segmentation.backend.api import ToolkitBackend >>> toolkit = ToolkitBackend() >>> toolkit.launch_aedt()
Methods
Get information for the active AEDT sessions.
Apply skew to rotor slices.
Connect to an existing AEDT session.
ToolkitBackend.connect_design
([app_name])Connect to an application design.
ToolkitBackend.export_aedt_model
(*args, **kwargs)Get the design names for a specific project.
Get magnet loss.
ToolkitBackend.get_project_name
(project_path)Get the project name from the project path.
Get the toolkit properties.
Get the toolkit thread status.
Error handler.
Get the installed AEDT versions.
Check if AEDT is connected.
Launch AEDT.
ToolkitBackend.launch_thread
(process, *args)Launch the thread.
ToolkitBackend.open_project
([project_name])Open an AEDT project.
ToolkitBackend.release_aedt
([...])Release AEDT.
ToolkitBackend.save_project
([project_path, ...])Save the project.
Apply object segmentation.
ToolkitBackend.serialize_obj_base64
(file_path)Encode a bytes-like object.
Assign the passed data to the internal data model.
Validate and analyze the design.
ToolkitBackend.wait_to_be_idle
([timeout])Wait for the thread to be idle and ready to accept a new task.