API reference#
The PyETK API contains the ToolkitBackend class, which provides methods for creating the whole model or specific geometries, such as the core, winding, or bobbin. These methods help you to visualize those parts and create core types, bobbins, excitations, circuits, and ultimately assemble an electronic transformer model. You use the PyETK API at the toolkit level.
The PyAEDT Common Toolkit provides common methods to create an AEDT session or connect to an existing AEDT session.
For information on using the PyETK API, see Create a transformer model in AEDT using the PyETK API.
- class ansys.aedt.toolkits.electronic_transformer.backend.api.ToolkitBackend[source]#
Bases:
AEDTCommonControl the toolkit workflow.
This class provides methods to connect to a selected design and create the model or the parts of the transformer.
Examples
>>> from ansys.aedt.toolkits.electronic_transformer.backend.api import ToolkitBackend >>> toolkit_api = ToolkitBackend() >>> toolkit_api.launch_aedt() >>> toolkit_api.wait_to_be_idle() >>> toolkit_api.create_core_geometry()
- load_properties_from_json(file_path)[source]#
Load properties from a JSON file.
- Parameters:
- file_path
str Path to the JSON file.
- file_path
- validate_json(data)[source]#
Validate input data from a JSON file.
- Parameters:
- data
pathlib.Path Path to the input data in JSON format.
- data