# Getting tag path from properties of an object

**URL:** <https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671>\
**Category:** Ignition\
**Created:** [December 5, 2013, 6:39pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671 "2013-12-05T18:39:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [December 5, 2013, 6:39pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/1 "2013-12-05T18:39:01Z")

</div>

I was wondering if after I drop a tag into an object, is it possible to get the tag path(s) from the populated properties?

After i dropped a tag into a text field, i wanted to access the tag that is populating the text field and have it in a custom property.

My goal is to set up an object this way and then be able to just drop a tag onto it without any modification.

Does anyone have a good way to do this? Is it even possible? Thanks!

---

<div class="post-metadata">

**Author:** ![RossStewart](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@RossStewart](https://forum.inductiveautomation.com/u/RossStewart)\
**Post date:** [December 5, 2013, 9:43pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/2 "2013-12-05T21:43:06Z")

</div>

You can create a template with indirect addressing for the objects inside, Create a custom property ,“PATH” (for example)

You could then use a tree object to list out the Tags. Add some scripting to move the selected tag in the tree view to the custom property “PATH”

Is that what you need?

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [December 6, 2013, 1:43pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/3 "2013-12-06T13:43:50Z")

</div>

Thanks Ross but that’s not really what i was looking for, I wanted to access the path property of an object not its value.

My goal is to have an object where i can drop a tag on it and a custom variable will populate with the tag path. If i use indirect i will have to change it for each tag and then it wont be dynamic.

The more I looked into it i don’t think its available without using a tag change script which also defeats the purpose.

Thanks anyway

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [December 6, 2013, 2:22pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/4 "2013-12-06T14:22:20Z")

</div>

all you would have to do is copy the tag path and paste it into the custom property that you create on the component, as opposed to dragging the tag. It would still be dynamic.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [December 6, 2013, 3:48pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/5 "2013-12-06T15:48:40Z")

</div>

I am being lazy, i was trying to make it a one step process if possible. I could drag the tag and then copy the path but doing that for 100+ items would suck. I was hoping to find a way to just drop a tag and move on!

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [December 6, 2013, 6:32pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/6 "2013-12-06T18:32:26Z")

</div>

there is no need to drag the tag if you do it the way we have explained

---

<div class="post-metadata">

**Author:** ![kwj](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@kwj](https://forum.inductiveautomation.com/u/kwj)\
**Post date:** [December 10, 2013, 5:00pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/7 "2013-12-10T17:00:28Z")

</div>

I was trying to figure this out the other day as well. I settled on a custom property that I copy the tag path into. Let me know if you figure out a way to do it.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [December 13, 2013, 2:38am UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/8 "2013-12-13T02:38:01Z")

</div>

Ill keep you posted, i haven’t found anything yet but I’m still hunting

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [December 27, 2013, 10:35pm UTC](https://forum.inductiveautomation.com/t/getting-tag-path-from-properties-of-an-object/7671/9 "2013-12-27T22:35:19Z")

</div>

There isn’t really a great way to do it. I would go with the ol’ tagPath custom property.
