# Is it possible to make the URCap Node "NonUserInsertable" after inserting it once?

**URL:** https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359
**Category:** URCaps SDK
**Created:** [July 23, 2018, 8:30am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359 "2018-07-23T08:30:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ronny.buch](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@ronny.buch](https://forum.universal-robots.com/u/ronny.buch)
#### Post date: [July 23, 2018, 8:30am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/1 "2018-07-23T08:30:16Z")

</div>

Hello,

Is it possible to make the URCap Node “NonUserInsertable” after inserting it once ? Or do not insert it twice? Is there a way to check the Tree for the URCapNode and make the Button in the URCap Tab not functionable?

Ronny

---

<div class="post-metadata">

### Author: ![ajp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/ajp/32/471_2.png) [@ajp](https://forum.universal-robots.com/u/ajp)
#### Post date: [July 24, 2018, 1:19am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/2 "2018-07-24T01:19:06Z")

</div>

I’m not 100% certain, but it seems unlikely that this will be possible. You would probably need to change the functionality of your node so that if it’s not the first instance to be inserted then it displays a message informing the user and doesn’t do anything else.

---

<div class="post-metadata">

### Author: ![ronny.buch](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@ronny.buch](https://forum.universal-robots.com/u/ronny.buch)
#### Post date: [July 24, 2018, 4:20am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/3 "2018-07-24T04:20:37Z")

</div>

> [@ajp](#):
>
> I’m not 100% certain, but it seems unlikely that this will be possible. You would probably need to change the functionality of your node so that if it’s not the first instance to be inserted then it displays a message informing the user and doesn’t do anything else.

Ok I’ll try it. Thanks for the answer

---

<div class="post-metadata">

### Author: ![ronny.buch](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@ronny.buch](https://forum.universal-robots.com/u/ronny.buch)
#### Post date: [July 26, 2018, 4:51am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/4 "2018-07-26T04:51:02Z")

</div>

@ajpI have another Question about the “NonUserinsertable” CapNodes… I want to set another UrCapNode in the ProgramTree after my Main UrcapNode isDefined(). I set the configuration.setUserInsertable to (false) in ProgramNodeService because it should not appear in the UrCaps Tab. But know i dont know how to set a new CapNode outside the MainUrcapTree. Is there a samplecap or something i can check?

---

<div class="post-metadata">

### Author: ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)
#### Post date: [July 26, 2018, 6:46am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/5 "2018-07-26T06:46:51Z")

</div>

You can only insert nodes as children of your own parent node.  
Not anywhere else in the program tree.

---

<div class="post-metadata">

### Author: ![ronny.buch](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@ronny.buch](https://forum.universal-robots.com/u/ronny.buch)
#### Post date: [July 26, 2018, 7:11am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/6 "2018-07-26T07:11:37Z")

</div>

so i have to write 2 Caps…or Change my rootTree.  
OK thx

---

<div class="post-metadata">

### Author: ![dmartin](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@dmartin](https://forum.universal-robots.com/u/dmartin)
#### Post date: [July 15, 2019, 11:13am UTC](https://forum.universal-robots.com/t/is-it-possible-to-make-the-urcap-node-nonuserinsertable-after-inserting-it-once/2359/7 "2019-07-15T11:13:20Z")

</div>

Dear UR developers. I would like to launch an idea, an option to implement this. Even it’s not the most important feature, but it seems easy and sometimes can be useful. It would be as simple as:

- When an `URCapNodeService` returns null to, lets say, `createView()`, **instead of throughing an error** message, the system just **doesn’t insert anything**.

Alternatives:

- instead of using the null value, adding a **parameter to insert or skip** the node.
- I said `createView()`, but I think it sould be the first method that is called from the system on when inserting the node.

This would allow the URCap designer to have control over the number of nodes inserted.

What do you think?
