aedt_sessions#
- AEDTCommon.aedt_sessions() Dict[int, int] #
Get information for the active AEDT sessions.
- Returns:
dict
Dictionary of AEDT process IDs (PIDS) {AEDT PID: port}. If the PID corresponds to a COM session, the port is set to
-1
.
Examples
>>> from ansys.aedt.toolkits.common.backend.api import Common >>> toolkit_api = Common() >>> toolkit_api.aedt_sessions() {pid1: grpc_port1, pid2: grpc_port2}