winIDEA SDK
Loading...
Searching...
No Matches
test_proj_get_status.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_getStatus():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
projCtrl = ic.CProjectController(connMgr)
bStatus = projCtrl.getStatus()
print(f"Is idle: {bStatus.isIdle()}")
print(f"Is idle with error: {bStatus.isIdleWError()}")
print(f"Is configuration error: {bStatus.isConfigError()}")
print(f"Is active: {bStatus.isActive()}")
print(f"Get number of errors: {bStatus.getNumErrors()}")
print(f"Get number of warnings: {bStatus.getNumWarnings()}")
if __name__ == "__main__":
test_getStatus()