# Get path to UDT instance within UDT

**URL:** <https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032>\
**Category:** Ignition\
**Created:** [May 26, 2020, 6:47am UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032 "2020-05-26T06:47:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [May 26, 2020, 6:47am UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/1 "2020-05-26T06:47:53Z")

</div>

Hi all,

I would like to get the path to a UDT instance so that I can bind some parameters to a tag within the same UDT. Basically I have the following structure UDTInstance\>Folder1\>tag1 and UDTInstance\>Folder2\>tag2.  
I would like to bind the Engineering High Limit of tag1 to the value of tag 2.

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [May 26, 2020, 7:00am UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/2 "2020-05-26T07:00:46Z")

</div>

Since Tag1 and Tag2 is in the same folder you could add Tag2 as an expression tag and use **{[.]tag1.EngHigh}** in the expression.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 26, 2020, 11:51am UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/3 "2020-05-26T11:51:49Z")

</div>

To add to this, you can also go up and down folders from the UDT instance using:  
`{[.]../parent folder's tag}`  
`{[.]../../grandparent folder's tag}`  
`{[.]child folder/tag}` \<- not 100% on this format, it might be `{[.]./child folder/tag}`

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [May 26, 2020, 10:15pm UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/4 "2020-05-26T22:15:22Z")

</div>

Hi Nick, I tried to do what you suggested, however it doesn’t seem to work. This is the tag I have set up:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a28fb9f538afe5470fcbc2d9f20a32c90b080d86.png)

However when I go and look at the engHigh property for the tag it is blank:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/44896c583290213b21241c99f28d246080302886.png)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 26, 2020, 10:42pm UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/5 "2020-05-26T22:42:18Z")

</div>

~~You should be using `{[.]../Meta/scaleMax}` I believe.~~

Edit: Actually, I’m not sure that you can use dynamic tag bindings in the properties of tags. It would have the potential to severely overload the processor due to so many bindings firing events.

Instead, I would use the scaleMin/Max within the fields’ min/max properties that you’re displaying the process variable in. This is what I do. If you create a template for this, even better.

I’ve attached the template that I use which provides the ability to override the min/max fields with other values. By default it will use the given tag’s fields.  
Quick explanation of parameters:  
EngHigh/LowOverride: override the min/max of the numeric input field properties  
EnLayout: See screenshot.  
HideBar: hides the value barchart  
HideUnits: hides the tag units  
Setpoint: toggle to show value [numeric label]/ setpoint [numeric input field]  
TagName: the name of the tag  
TagParentPath: the full folder path to the tag, excluding the name  
Target\*: unused at the moment

[Analogue Value W114.proj](https://forum.inductiveautomation.com/uploads/short-url/n4dpVg0nxKwD4mWCOV8xImhC2SQ.proj) (10.4 KB)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5bbe28b8b296668a81f59a86795163a205554149.png)

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [May 26, 2020, 11:04pm UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/6 "2020-05-26T23:04:53Z")

</div>

Appreciate the response Nick. I do have templates with high and low clamps on them but was hoping to implement something at a lower level. Why would making a tag property dynamic put a high load on the CPU? Might be missing something but it seems like something that should be possible.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 26, 2020, 11:08pm UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/7 "2020-05-26T23:08:06Z")

</div>

> [@michael2](#):
>
> Why would making a tag property dynamic put a high load on the CPU?

Imagine if the tags being bound were constantly changing, and they were used in hundreds/thousands of places, this would cause a constant load on the gateway. I understand that the scale tags probably don't change all that often, if ever, however it's probably a limitation to stop people from abusing it. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [May 26, 2020, 11:14pm UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/8 "2020-05-26T23:14:33Z")

</div>

Hmm, value is a property of the tag itself which is constantly changing, so it seems like other properties could work in the same way. Can anyone from IA comment on why this isn’t possible?

---

<div class="post-metadata">

**Author:** ![BryanB](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@BryanB](https://forum.inductiveautomation.com/u/BryanB)\
**Post date:** [May 28, 2020, 5:34am UTC](https://forum.inductiveautomation.com/t/get-path-to-udt-instance-within-udt/35032/9 "2020-05-28T05:34:18Z")

</div>

Try not using the {} around the reference. I’ve got some working references in a UDT that are written that way.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bd3184539aa3236adb9eb0ffa92de9474457bfde.png)
