# Dynamic udt instances

**URL:** <https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 3, 2024, 8:09pm UTC](https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767 "2024-07-03T20:09:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anant\_Upadhyayula](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Anant\_Upadhyayula](https://forum.inductiveautomation.com/u/Anant_Upadhyayula)\
**Post date:** [July 3, 2024, 8:09pm UTC](https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767/1 "2024-07-03T20:09:22Z")

</div>

![UDT Definition Editor](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/e/dedb586d2f9f0d21b4c2066cfac30953294acef5.png)

Attached is a screenshot of my udt definition. I wanted to create a filler udt. there is some variability in the number of filling heads in the filler. I wanted to pass the number parameter to the head number. When I create the filler instance based on the number of head parameter values which can be anything between 6 to 28. I wanted the instance to create multiple head instances under the parent udt instance.  
is it possible without going much into scripting? I am new to ignition and don't have much understanding of scripting.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2024, 8:19pm UTC](https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767/2 "2024-07-03T20:19:09Z")

</div>

You cannot do this, not even with scripting. When variable numbers of elements are needed , just use a normal tag folder.

You **can** use scripting to create the variable number of UDT instances, though.

---

<div class="post-metadata">

**Author:** ![Anant\_Upadhyayula](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Anant\_Upadhyayula](https://forum.inductiveautomation.com/u/Anant_Upadhyayula)\
**Post date:** [July 3, 2024, 8:25pm UTC](https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767/3 "2024-07-03T20:25:39Z")

</div>

@pturmel I tried the normal folder in the udt definition but once created it does not let me add any instances with in the folder. New tag/tag type both gets greyed out

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2024, 8:50pm UTC](https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767/4 "2024-07-03T20:50:25Z")

</div>

I meant that you cannot have such a dynamic UDT structure _ **at all** _. Just use a regular tag folder where you are currently trying to use a UDT.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 11, 2024, 6:57pm UTC](https://forum.inductiveautomation.com/t/dynamic-udt-instances/92767/5 "2024-07-11T18:57:18Z")

</div>

~~Asked slightly differently over here:~~

> [@Creating Dynamic UDT](https://forum.inductiveautomation.com/t/creating-dynamic-udt/93081):
>
> . I have a need to create a tank overview page with over 50 tanks. I was taking the UDT route to minimize the pain of creating repeated tasks. As shown in the image, 1, 2, 3 are connections to three different PLCs in the field. I was wondering if there is a way to switch the opc path based on the Tank number? or may PLC path dynamic to switch to the right PLC. PLC-1 = 33 tanks PLC-2 = 23 Tanks PLC-3 = about 11 tanks I hate to create a separate udt based on PLC.…
