How do I save my URCap ProgramNode status?

Hi all,

I would like to create a robot program to test the capabilities of my URCap, but even if I save it, I always need to set again my URCap settings and this is a bit annoying.

I mean something like what happens with the Wait Basic Structure: everytime I change the wait duration I can save the program and I find the right value when loading the .urp on startup.

Do I need to set something special to achieve this behavior?

Thank you for your time,
Alessandro Tondo @qbrobotics

Hi Alessandro

All settings for your URCap nodes, either different program nodes or an installation node should be saved inside the DataModel using the “set” function and upon opening the program node or generating the script, they should be retrieved by the “get” function.

There is only created one instance of the graphics of a node, hence if you have multiple program nodes within a program, you should reset the shown values in the graphics inside the openView method.

1 Like

Thank you @jbm!

I have started developing the URCap from scratch and I completely forgot to add those lines again.

Alessandro Tondo @qbrobotics