# How to create an assigmentnode?

**URL:** <https://forum.universal-robots.com/t/how-to-create-an-assigmentnode/1178>\
**Category:** URCap Development\
**Created:** [September 15, 2017, 9:53am UTC](https://forum.universal-robots.com/t/how-to-create-an-assigmentnode/1178 "2017-09-15T09:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon58840761](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon58840761](https://forum.universal-robots.com/u/anon58840761)\
**Post date:** [September 15, 2017, 9:53am UTC](https://forum.universal-robots.com/t/how-to-create-an-assigmentnode/1178/1 "2017-09-15T09:53:17Z")

</div>

What is the proper way of creating an assignment node or is there a bug?

```
TreeNode root = getRoot();
ProgramNodeFactory nf = getProgramNodeFactory();     
root.addChild(nf.createMoveNode());

```

I get an error when trying to rename it.

 ![ursim [Running] - Oracle VM VirtualBox_004](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/d5b4f93954a72dab0c8fac14f7fd074ec68e6bac.png)
