winIDEA SDK
test_proj_get_status.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8winidea_id = ''
9
10
11def test_getStatus():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 projCtrl = ic.CProjectController(connMgr)
16
17 bStatus = projCtrl.getStatus()
18 print(f"Is idle: {bStatus.isIdle()}")
19 print(f"Is idle with error: {bStatus.isIdleWError()}")
20 print(f"Is configuration error: {bStatus.isConfigError()}")
21 print(f"Is active: {bStatus.isActive()}")
22 print(f"Get number of errors: {bStatus.getNumErrors()}")
23 print(f"Get number of warnings: {bStatus.getNumWarnings()}")
24
25
26if __name__ == "__main__":
27 test_getStatus()