Universal Robots+

Handler on node delete?

Hi all,

Is it possible for a ProgramNodeContribution to know if the user deleted it from the program list? Ideally, I’d like some sort of callback called when the user deletes a node, or some status flag that can be checked from withing a program node.

Thanks in advance,


I recently searched for something like that, but couldn’t find anything. I think we can’t :frowning:

Another thing I found out is that whenever a program node is copied (copied only, not pasted), a new instance is created. When pasting, one more is created, so the one that is created when pressing Copy is never placed in the program listing.

Perhaps what I’d need given that is a way to check if the program node is present in the robot program’s listing or not.

1 Like