# Add Folder to the Root Tree

**URL:** <https://forum.universal-robots.com/t/add-folder-to-the-root-tree/1856>\
**Category:** URCaps SDK\
**Created:** [April 9, 2018, 1:18pm UTC](https://forum.universal-robots.com/t/add-folder-to-the-root-tree/1856 "2018-04-09T13:18:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon12495347](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anon12495347](https://forum.universal-robots.com/u/anon12495347)\
**Post date:** [April 9, 2018, 1:18pm UTC](https://forum.universal-robots.com/t/add-folder-to-the-root-tree/1856/1 "2018-04-09T13:18:49Z")

</div>

Hello everyone,

I’m trying to add a folder node directly under the root node in the tree but it’s always created under the last selected node.  
This is the code that I use:

 ![Code%20Folder](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/7cb98943ecb2e86437a57d32cac9137eced8ea52.PNG)

The result of that code is:

![Tree%20Folder](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/9f6246c1b07038ff3baf6d8bdbeb5d50f135fd22.PNG)  
I want to add the folder always under the Robot Program and not under the Ellipse function.  
No matter what the selected position is.

Is there anyone with an idea to fix that?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [April 17, 2018, 6:13pm UTC](https://forum.universal-robots.com/t/add-folder-to-the-root-tree/1856/2 "2018-04-17T18:13:31Z")

</div>

Hello,

The UR API does not support multiple instances of ‘parent nodes’ to the program tree, in other words you cannot traverse the parent node you are located in. You can only add or update child nodes, which is why the folder appears as a child of the Ellipse node.

In this case another parent node could be created similarly to how the Ellipse node was created. (similar to the existing folder function under the basic commands tab)
