The helpers.py module#
Summary#
Discover AEDT sessions currently running on the local system. |
|
Get comprehensive information from an AEDT instance. |
|
Get information about an AEDT application or design. |
|
Parse and normalize an AEDT version string. |
|
Get a mapping from AEDT design-type strings to PyAEDT application classes. |
|
Resolve and attach to the PyAEDT application for a target design. |
Description#
Helper functions for PyAEDT-MCP.
This module provides utility functions for working with AEDT instances and extracting information from them.
Module detail#
- helpers.discover_available_aedt_sessions() list[dict[str, Any]]#
Discover AEDT sessions currently running on the local system.
- helpers.get_aedt_info(desktop: Any) dict[str, Any]#
Get comprehensive information from an AEDT instance.
- Parameters:
- desktop
Any AEDT instance.
- desktop
- Returns:
- helpers.get_design_info(app: Any) dict[str, Any]#
Get information about an AEDT application or design.
- helpers.parse_aedt_version(version_str: str | None) str | None#
Parse and normalize an AEDT version string.
- helpers.get_design_type_map() dict[str, Any]#
Get a mapping from AEDT design-type strings to PyAEDT application classes.
The keys are the design-type identifiers returned by
Desktop.design_type(). The values are the corresponding PyAEDT application classes that can be instantiated to attach to an existing AEDT session.
- helpers.resolve_design_app(desktop: Any, project_name: str | None = None, design_name: str | None = None) tuple[Any, str | None, str | None]#
Resolve and attach to the PyAEDT application for a target design.
- Parameters:
- Returns:
- Raises:
RuntimeErrorIf the design type is unsupported.
- helpers.logger#