Universal Robots Forum

setSelected() For ProgramNodes

Summary

Simulates the user selecting a program node from the program tree

What is it?

This would be a nice quality of life improvement for the user if they were to add or delete children for example. If I add a child, I may want to immediately display this child to the user instead of making them manually select it.

Why is it needed?

Currently, when you add a child, the user remains on the parent page. When demonstrating our CAP to customers, they often assume that after pressing “add child” that they are now editing properties for said child, when in reality they are still on the parent page.

We also lock the ability to add children through the buttons on the left so the user cannot add any built in Polyscope functions, but instead are restricted to the moves we allow. This means that if we delete a child from itself, the “Robot Program” always gets selected by default. I would like to automatically select the previous child (if it exists) or the parent if the last child has been deleted. Basically being able to replicate how the built-in delete button works, since this cannot be used in a setChildLockSequence(true) scenario.

1 Like