# Use a ProgramNode to call a URScript file

**URL:** <https://forum.universal-robots.com/t/use-a-programnode-to-call-a-urscript-file/2966>\
**Category:** URCaps SDK\
**Tags:** urscript, generate-script\
**Created:** [October 22, 2018, 10:37am UTC](https://forum.universal-robots.com/t/use-a-programnode-to-call-a-urscript-file/2966 "2018-10-22T10:37:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jc1](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jc1](https://forum.universal-robots.com/u/jc1)\
**Post date:** [October 22, 2018, 10:37am UTC](https://forum.universal-robots.com/t/use-a-programnode-to-call-a-urscript-file/2966/1 "2018-10-22T10:37:45Z")

</div>

Hi Developers,

I need from my URCap to insert some defined scripts files in the Treenodes, but there is no scriptNode in the ProgramNode interface.  
Is there a work around that?

Best Jens

---

<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:** [October 22, 2018, 11:41am UTC](https://forum.universal-robots.com/t/use-a-programnode-to-call-a-urscript-file/2966/2 "2018-10-22T11:41:59Z")

</div>

Create a program node, and insert this as a placeholder.  
Insert this at the relevant places.  
Use the URCap Proprietary API to define the script it should add in its ScriptWriter.

You could optionally add a meaningful title and description in the node using the same API to tell the user what this node is doing.

---

<div class="post-metadata">

**Author:** ![jc1](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jc1](https://forum.universal-robots.com/u/jc1)\
**Post date:** [November 1, 2018, 6:24am UTC](https://forum.universal-robots.com/t/use-a-programnode-to-call-a-urscript-file/2966/3 "2018-11-01T06:24:48Z")

</div>

> [@jbm](#):
>
> Proprietary

Could you give a example on it?  
Thanks

Best Jens

---

<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:** [November 1, 2018, 7:40am UTC](https://forum.universal-robots.com/t/use-a-programnode-to-call-a-urscript-file/2966/4 "2018-11-01T07:40:34Z")

</div>

Yes, in this example:

> [@URCap Sample: URCap CustomAPI](https://forum.universal-robots.com/t/sample-urcap-customapi/3022):
>
> URCap CustomAPI Description of functionality: This example demonstrated the usage of the URCap CustomAPI interface. Allowing a parent node to configure the configuration of its child node. In this example, this is covered by allowing the parent node to define the color of the child node. What topics are covered: Proprietary API, Custom API, parent node, child node, interfaces [Find it on Github!](https://github.com/BomMadsen/URCap-CustomAPI) Requirements: URCaps API 1.3 (Swing)
