How can I access the connected terminals of a branch element via DPL or Python?

Category:
Scripting
Answer

In the dialog of branch elements such as lines (class ElmLne) the connected terminals are displayed in red color. The same information is displayed in Data Manager as columns "Terminal i", "Terminal j". Unfortunately the underlying attributes "e:busXX_bar" (e.g. "e:bus1_bar") are not accessible from DPL, Python or via the API. Instead the connected terminals have to be retrieved via the attribute navigation "r:busXX:e:cBusBar".

Example for a line, the two connected terminals can be accessed in DPL via

object bus1, bus2;
bus1 = lne:r:bus1:e:cBusBar;
bus2 = lne:r:bus2:e:cBusBar;
Back