Python event when you click on a statement or touch-up


Is it possible to catch the event in a Python script when you click on a motion statement or a user Process Statement in the program editor and also when you click the touch-up button?

I would like to build different geometries depending on which statement I click on.


I don’t think so. The Python API is not for such user interface extensions / hacks.

Can the vcSelectionManager be used with OnSelectionChanged?

Looks like the vcSelectionManager can get selected statement with the VC_SELECTION_STATEMENT constant. You could use that together with the OnSelectionChanged event.
For touch-up, I’m not sure if python is can do it, or if you should switch to .NET.