winIDEA SDK
test_enumerate_winidea_instances.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2# (c) TASKING Germany GmbH, 2023
3
4import isystem.connect as ic
5
6
7def test_enumerateWinIDEAInstances():
8 print("Enumerating all available local winIDEA instances...")
9 connMgr = ic.ConnectionMgr()
10 cfg = ic.CConnectionConfig()
11 winIDEAInstances = ic.VectorWinIDEAInstanceInfo()
12 connMgr.enumerateWinIDEAInstances("", cfg, winIDEAInstances)
13
14 for instance in winIDEAInstances:
15 instance: ic.WinIDEAInstanceInfo
16 print(f"ID: {instance.getInstanceId()}")
17 print(f"\tWorkspace: {instance.getWorkspace()}")
18 print(f"\tTCP port: {instance.getTcpPort()}")
19
20
21if __name__ == "__main__":
22 test_enumerateWinIDEAInstances()