# Custom Node input var\[\]...\[\] to infinity and beyond!

**URL:** <https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228>\
**Category:** Revit\
**Created:** [December 3, 2018, 10:00pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228 "2018-12-03T22:00:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![L-Vettz](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@L-Vettz](https://forum.dynamobim.com/u/L-Vettz)\
**Post date:** [December 3, 2018, 10:00pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/1 "2018-12-03T22:00:40Z")

</div>

Can anybody explain to me why several of my custom nodes add another var… to their input field every time I restart dynamo? For example, here is one I just opened. Blank graph, just this node.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/1/71c2e734918fdce4778e32b2f1dbd710b7f41f6a.png)

Here it is again, same situation, after closing and restarting dynamo once.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/2/b2c388a54f67ebd2b4fd62d82350e5fad02215ff.png)

The functionality of the node does not seem to be affected, but as you can imagine, after a week of developing tools with it, they can become rather… distracting. Any ideas as to what is causing this and how I can avoid it?

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [December 4, 2018, 12:44am UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/2 "2018-12-04T00:44:12Z")

</div>

Hi @L-Vettz

Remove spaces from inputs and you should be fine:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e4d7e691d853c775f386b6d0f07f27b6f743f5b8.png)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/585c99f6bf829998881cfadadd5b8300bed9fc11.png)

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [December 4, 2018, 2:09am UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/3 "2018-12-04T02:09:42Z")

</div>

@L-Vettz this looks like a bug - what version of dynamo are you using, can you please report it here:

> **[DynamoDS/Dynamo](https://github.com/DynamoDS/Dynamo/issues)**
>
> Open Source Graphical Programming for Design. Contribute to DynamoDS/Dynamo development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 4, 2018, 2:20am UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/4 "2018-12-04T02:20:42Z")

</div>

As far as I know “Var” means a variety in type of input you are passing to the node.  
In other words you are not specific with the input data type.  
For instance your select model elements input field here MAY get input of other data types say a number and tries to execute the node,  
I believe you should just type elements in the inputs and sellect the suggestion that comes in green color.  
Hope this is the problem,Not sure though.

---

<div class="post-metadata">

**Author:** ![L-Vettz](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@L-Vettz](https://forum.dynamobim.com/u/L-Vettz)\
**Post date:** [December 4, 2018, 1:13pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/5 "2018-12-04T13:13:50Z")

</div>

@Kulkul that didn’t work.

Now it is just adding onto the one after the spaces.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dceb8834d5917d1de00ff27f31305e03844acc06.png)

Here is the internal structure of this node (showing the same problem), however the duplication issue is not limited to this particular node.

@Michael_Kirschner2 I am on V2.0.2.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7710c1204d1217506b6e9a1eb1fa607451ddbd2.png)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [December 4, 2018, 1:15pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/6 "2018-12-04T13:15:16Z")

</div>

@L-Vettz could you please drop custom node here?

And also i told to remove spaces between words, write one word **SelectedModelElements** and so on…

---

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [December 4, 2018, 1:16pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/7 "2018-12-04T13:16:28Z")

</div>

Hi,

I think you have to delete the spaces in the name of the variables : words appearing in blue isn’t normal.  
Also, have you tried defining yourself the type of your variables (i.e. replacing `var[]...[]` by a more pertinent type) ?

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [December 4, 2018, 3:38pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/8 "2018-12-04T15:38:45Z")

</div>

as recommended please try this without spaces in your symbol names (the string before the : )

---

<div class="post-metadata">

**Author:** ![L-Vettz](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@L-Vettz](https://forum.dynamobim.com/u/L-Vettz)\
**Post date:** [December 4, 2018, 4:46pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/9 "2018-12-04T16:46:40Z")

</div>

Thanks. I misunderstood when you said remove the spaces. I thought you meant the “…” in the Var….

Removing them from the input name like you showed in your first screenshot seems to have solved the problem.

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [December 4, 2018, 6:47pm UTC](https://forum.dynamobim.com/t/custom-node-input-var-to-infinity-and-beyond/29228/10 "2018-12-04T18:47:40Z")

</div>

I’ve tracked this internally as DYN-972
