Hi,
I want to use a button in a custom process. This button works fine directly after the process is created. But if I add a second process or save and load a layout with the process, the button is not working anymore.
So I declare a global variable to store the button property.
btnProp=None
When the process is created a method is assigned to the event
btnProp = stat.createProperty(VC_BUTTON, “Generate Path”)
btnProp.OnChanged = UpdatePath
…
def UpdatePath():
…
How to keep the button event always active?
Perhaps I need to add something in the process handler script for the robot?
But the button property (btnProp) is linked to a statement not a component, where in the process handler can I get the statement?
It will look something like this: