# parentPath for UDT's

**URL:** <https://forum.inductiveautomation.com/t/parentpath-for-udts/63851>\
**Category:** Ignition\
**Created:** [September 7, 2022, 7:08pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851 "2022-09-07T19:08:18Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 7:08pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/1 "2022-09-07T19:08:18Z")

</div>

I imported a bunch of tags, and was able to copy/paste them into UDT definition, but now I would like to have a script run thru and change the tags to use the UDT parameters rather than changing a bunch manually. I think the system.tag.editTag function would let me do that, but I’m not sure what parentPath to use? I tried [default] but it doesn’t seem to find the tags? Any suggestions?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 8:27pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/2 "2022-09-07T20:27:26Z")

</div>

Might be easier to export and do a search and replace, then import back in.

---

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 8:29pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/3 "2022-09-07T20:29:07Z")

</div>

I couldn’t figure out how to import into UDT’s?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 8:35pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/4 "2022-09-07T20:35:35Z")

</div>

It’s essentially the same as tags, just different tab.

---

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 9:02pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/5 "2022-09-07T21:02:44Z")

</div>

I agree, it’s close, but not the same.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 9:13pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/6 "2022-09-07T21:13:53Z")

</div>

You still use the same import/export buttons, just make sure you have the UDT definition tab selected.

What exactly can’t you figure out with it?

---

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 9:15pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/7 "2022-09-07T21:15:47Z")

</div>

How in the json file to set the OPC Item Path and the OPC Server.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 9:18pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/8 "2022-09-07T21:18:19Z")

</div>

What I typically do is set one tag correctly then export to see how it’s done. Using something like notepad++ makes editing a bit easier.

Sorry, I thought you were having actual issues with the import process.

---

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 9:21pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/9 "2022-09-07T21:21:42Z")

</div>

It’s been awhile, but I think I tried that and it wouldn’t let me import them into the UDT. You can import them as a regular tag, and then copy/paste them into the UDT, but I haven’t been able to import directly to a UDT. I’m sure there is a way to do it. I will just have to keep playing with it.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 9:27pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/10 "2022-09-07T21:27:39Z")

</div>

> [@Billy\_Elliott](#):
>
> It's been awhile, but I think I tried that and it wouldn't let me import **them** into the UDT.

What is them? You can import UDTs. Export a UDT and then import it right back in for practice.

---

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 9:38pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/11 "2022-09-07T21:38:03Z")

</div>

Yeah I was trying to import a whole bunch of tags into a UDT. I wanted to assign the OPC Item Path and the OPC Server as parameters in the UDT and then have each tag refer to them. But I had problems with it, but I’m still pretty green with Ignition so it’s not surprising! LOL

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 9:44pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/12 "2022-09-07T21:44:02Z")

</div>

Gotcha, might want to spend a week getting more acquainted with the software. My advice is complete Inductive University first, [https://inductiveuniversity.com](https://inductiveuniversity.com)

It might just be confusion on the terminology, I’m not quite following where you want to import a bunch of tags into a UDT. The UDT is the definition. How many UDTs do you have?

---

<div class="post-metadata">

**Author:** ![Billy\_Elliott](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Billy\_Elliott](https://forum.inductiveautomation.com/u/Billy_Elliott)\
**Post date:** [September 7, 2022, 9:49pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/13 "2022-09-07T21:49:33Z")

</div>

I want to create a UDT because I have several of the same device. It has probably 500 tags and I felt like creating a UDT would be the easiest thing to do. Create the UDT, put the path as a parameter so that when I create the UDT under the tags section all I would need to do is change the path parameter and then all the “new” tags would look to the correct device. I’ve done it with a couple of different ones and it works well. But they didn’t have so many tags to load so I was trying to figure out a way to do automatically. But as usual sometimes brute force is faster! But I usually learn more even if it takes more time. But even if I do, it would be handy to be able to update a tag from a script. I can do it on regular tags, but I can’t get it to find a UDT template tag and update it.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 9:57pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/14 "2022-09-07T21:57:12Z")

</div>

I’m unaware of a way to programmatically change a UDT definition element, but that doesn’t mean a way doesn’t exist. You can programmatically change the parameters.

You could have probably had this done in the 3 hours since you posted. 🙂

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 10:00pm UTC](https://forum.inductiveautomation.com/t/parentpath-for-udts/63851/15 "2022-09-07T22:00:57Z")

</div>

Perhaps this doc will help you,  
[https://docs.inductiveautomation.com/display/DOC81/User+Defined+Types+-+UDTs](https://docs.inductiveautomation.com/display/DOC81/User+Defined+Types+-+UDTs)
