In API how can I know which objects are selected in RSA?
|
In API how can I know which objects are selected in RSA?
You can use
RobApp.Project.Structure.Selections.Get(obj_type)
to get current selection of objects of given type.
The obj_type is a value from IRobotObjectType enumeration, e.g. I_OT_NODE, I_OT_BAR, I_OT_PANEL, etc.