winIDEA SDK
Loading...
Searching...
No Matches
test_cconnection_config.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
def test_CConnectionConfig():
print("This is an example of how 'CConnectionConfig' instance is created...")
cfg = ic.CConnectionConfig()
cfg.cmd_line("/LOG:6")
cfg.instanceId("sdk_example")
cfg.udpDiscoveryPort(5345) # see 'isystem.connect' options dialog for range
cfg.useIPCDiscovery(True)
cfg.visibility(ic.IConnect.lfShowHidden) # use winIDEA in headless mode
cfg.waitTime(ic.IConnect.lfWait100ms)
cfg.workspace("C:/Desktop/myWorkspace/Sample.xjrf")
# additionally, there are 'get()' methods for getting data from existing instance
# when connection is performed via 'CConnectionConfig'.
if __name__ == "__main__":
test_CConnectionConfig()