Search the Community
Showing results for tags 'terminal scripting'.
Found 1 result
How to get all terminals/wires of a block diagram object?
SDietrich posted a topic in VI ScriptingHi all, I want to write a quick drop plugin and it will deal with selecting things on the block diagram. It needs to traverse along wires to find things that are connected to the object the user selected. So the first question is: How do I get all terminals (or wires) of a GObject? TopLvlDiag.SelList returns an array of GObjects and that does not have a property like Wires or Terms. At the moment I tend to use a big case structure and cast the GObject to whatever class the object is (Node, Constant, Tunnel, ...) and use the Terms property of that. Isn't there are more elegant, easier and less error prone method? FYI: I already have SuperSecretPrivateSpecialStuff=True. Thanks for any idea or advice.