winIDEA SDK
Loading...
Searching...
No Matches
test_set_multi.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_set_multi():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
optCtrl = ic.COptionController(connMgr, "/IDE/System.Debug.Applications[0]")
value1 = optCtrl.get("Name")
value2 = optCtrl.get("SymbolFiles.DefaultFile")
print("Setting new values for attributes 'Name' and 'SymbolFiles.DefaultFile'...")
inParams = ic.StrStrMap()
inParams["Name"] = "myName"
inParams["SymbolFiles.DefaultFile"] = "42"
optCtrl.set_multi(inParams)
print("Restoring original values...")
optCtrl.set("Name", value1)
optCtrl.set("SymbolFiles.DefaultFile", value2)
if __name__ == "__main__":
test_set_multi()