# Retrieve selected TreeNode from Robot Program

**URL:** <https://forum.universal-robots.com/t/retrieve-selected-treenode-from-robot-program/8793>\
**Category:** URCaps SDK\
**Created:** [September 14, 2020, 10:34pm UTC](https://forum.universal-robots.com/t/retrieve-selected-treenode-from-robot-program/8793 "2020-09-14T22:34:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon87732236](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@anon87732236](https://forum.universal-robots.com/u/anon87732236)\
**Post date:** [September 14, 2020, 10:34pm UTC](https://forum.universal-robots.com/t/retrieve-selected-treenode-from-robot-program/8793/1 "2020-09-14T22:34:45Z")

</div>

Hello,

Is there a way to retrieve a reference to the currently selected TreeNode from the current robot program?

![example](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/0/03d07ea50652f8ad15e3e41e4e2935d03a1e9f9b.png)  
Using the previous program as an example, I have a URCap program node as root with various children nodes. And in this scenario, I would like to get a reference to the Waypoint\_1 TreeNode.

Thanks,  
Alexander
