If given just a tag path in a script, [Something]MyTag
, what is the best way to check if this is a UDT instance?
1 Like
Thanks, was curious if there was a more “direct” way,
You could probably read tagPath.typeId
; if it’s null then it’s not an instance.
2 Likes
I think I'm missing something obvious here. How exactly do I use tagPath.typeId? Do I use that in conjunction with system.tag.getConfiguration?
Literally just system.tag.readBlocking(["path/to/myTag.typeId"])
.
1 Like
Thank you!
Is there a way to use this approach to directly check if a tag is a member of a UDT?
E.g "path/to/myUDT/myTag"
Currently Im left splitting the string on each "/" and checking if the sub path is a UDT.