RoboDK Forum
How to determine the active reference frame item?可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: How to determine the active reference frame item? (/Thread-How-to-determine-the-active-reference-frame-item)



How to determine the active reference frame item?-Maarten-08-02-2022

Hi, in the GUI, a green dot shows up on the icon of the active reference frame. How can this active reference frame item be determined via the API?

Best regards,

Maarten


RE: How to determine the active reference frame item?-Sam-08-03-2022

Hi Maarten,

frame_item = robot_item.getLink(ITEM_TYPE_FRAME) is what you're looking for.
You can also use robot_item.PoseFrame() if you only need the pose of the active frame.


RE: How to determine the active reference frame item?-Maarten-08-03-2022

Thanks, that works!