winIDEA SDK
test_export_import_layout.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import os
6import isystem.connect as ic
7
8
9winidea_id = ''
10
11
12def test_exportImportLayout():
13 connMgr = ic.ConnectionMgr()
14 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15
16 ideCtrl = ic.CIDEController(connMgr)
17
18 print(f"Exporting current GUI layout to file 'myLayout.jswt' in workspace root folder...")
19 ideCtrl.exportViewLayout("myLayout.jswt")
20
21 print(f"Importing layout from file...")
22 ideCtrl.importViewLayout("myLayout.jswt")
23
24
25if __name__ == "__main__":
26 test_exportImportLayout()