# Using scripts to create UDT data types

**URL:** <https://forum.inductiveautomation.com/t/using-scripts-to-create-udt-data-types/22627>\
**Category:** Ignition\
**Created:** [February 15, 2019, 10:27pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-create-udt-data-types/22627 "2019-02-15T22:27:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nar](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nar](https://forum.inductiveautomation.com/u/nar)\
**Post date:** [February 15, 2019, 10:27pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-create-udt-data-types/22627/1 "2019-02-15T22:27:35Z")

</div>

From reading the documentation, I can gather that it is really easy to add an instance of a UDT using system.tag.addTag(), however what if we want to make our own UDT’s via script as well? Is this possible? I could not figure out by looking at the documentation.

---

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [February 19, 2019, 3:05am UTC](https://forum.inductiveautomation.com/t/using-scripts-to-create-udt-data-types/22627/2 "2019-02-19T03:05:33Z")

</div>

Assuming this is from a development standpoint, you could just write a script to create the XML definition of a UDT that you could import into the project.

Not sure how you would expect to do this at runtime since you would also have to create objects that could reference it.
