Plugins SDK access
This chapter describes how to access plugin window's content via isystem.connect SDKs.
To read a specific row from a plugin window, it is sometimes tedious to write the item's path by hand. To make it easier, winIDEA offers Python snippet generation using row’s context menu option Copy Python access snippet.
![]() 1. Open a plugin via View menu / <plugin>. 2. Right-click on to open the context menu. 3. Select option Copy Python access snippet. |
This option generates 2 lines of code, that extract row’s content into local variable viewContent:
pluginCtrl = ic.CPluginController(connectionMgr, "[TC277TF] Aurix");
viewContent = pluginCtrl.get_content("RCU", "/SCU_RSTCON/SMU", ic.IntVector());
This snippet can then be used in a SDK script:
# Snippet from option Copy Python access snippet...
pluginCtrl = ic.CPluginController(connectionMgr, "[TC277TF] Aurix");
viewContent = pluginCtrl.get_content("RCU", "/SCU_RSTCON/SMU", ic.IntVector());
# print value from column Value
print(viewContent["/SCU_RSTCON/SMU"][viewContent["header"].index("Value")]);
# output:
# 0b10
# print all values
for k in viewContent.iterator():
print(k);
# output:
# ('/SCU_RSTCON/SMU', ('SMU', 'O: 6 S: 2', '0b10', 'An Application Reset is generated for this trigger'))
# ('header', ('Name', 'Address', 'Value', 'Details'))