# Script Export of UDT Definitions

**URL:** <https://forum.inductiveautomation.com/t/script-export-of-udt-definitions/95374>\
**Category:** Ignition\
**Created:** [August 30, 2024, 3:14pm UTC](https://forum.inductiveautomation.com/t/script-export-of-udt-definitions/95374 "2024-08-30T15:14:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Garman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin_garman/32/48695_2.png) [@Kevin\_Garman](https://forum.inductiveautomation.com/u/Kevin_Garman)\
**Post date:** [August 30, 2024, 3:14pm UTC](https://forum.inductiveautomation.com/t/script-export-of-udt-definitions/95374/1 "2024-08-30T15:14:44Z")

</div>

Hi,

Looking at the example for exportTags ([system.tag.exportTags | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-exportTags)), I see it's suppose to export UDT definitions along with tags. How would I use this to only export UDT definitions, and better yet, loop through all UDTs exporting them one at a time to their own files?

Thanks,  
Kevin

---

<div class="post-metadata">

**Author:** ![jreynolds1](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jreynolds1](https://forum.inductiveautomation.com/u/jreynolds1)\
**Post date:** [August 30, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/script-export-of-udt-definitions/95374/2 "2024-08-30T15:49:11Z")

</div>

UDTs are in the `_types_` folder, so using that as your filepath would give you only UDTs.

> `tagPaths = ["[provider]_types_"]`

You can you system.tag.browse() to find all UDTs then loop through them to export each as a separate file.

Depending on what you would like to do, you could also use the [Tag CICD module](https://github.com/design-group/ignition-tag-cicd-module) to export to individual files

---

<div class="post-metadata">

**Author:** ![Kevin\_Garman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin_garman/32/48695_2.png) [@Kevin\_Garman](https://forum.inductiveautomation.com/u/Kevin_Garman)\
**Post date:** [August 30, 2024, 3:51pm UTC](https://forum.inductiveautomation.com/t/script-export-of-udt-definitions/95374/3 "2024-08-30T15:51:34Z")

</div>

Ha, thanks @jreynolds1 you beat me to it....I just stumbled across the _types_ folder!

---

<div class="post-metadata">

**Author:** ![Kevin\_Garman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin_garman/32/48695_2.png) [@Kevin\_Garman](https://forum.inductiveautomation.com/u/Kevin_Garman)\
**Post date:** [August 30, 2024, 3:53pm UTC](https://forum.inductiveautomation.com/t/script-export-of-udt-definitions/95374/4 "2024-08-30T15:53:05Z")

</div>

Tag CICD module looks very cool.
