[quote=“eric129”]While I’m certain that would work, I’m interested if they can be referenced as I described.
Thanks for the response.[/quote]
I dont think so, but you may be able to use the browseTags function to grab all of the available tagnames in your structure first and then use readAll to grab the values for the tags that browseTags finds.
I’m thinking about using a readall and converting the results to a dictionary so it would be flexible, but if the read (and write) of the structure did this internally it would be a lot cleaner.
[code]#udtPath determines dictionary keys, pay attention to the final backslash
udtPath = “[myTagProvider]MyUdtFolder/”
#get tag paths for the ‘udt’
udtTagPaths = system.tag.browseTags(parentPath=udtPath, recursive=True, sort=“ASC”)
udtTags = []
for tag in udtTagPaths:
if not tag.isFolder() and not tag.isUDT():
udtTags.append(tag.fullPath)
tagValues = system.tag.readAll(udtTags)
udt = {}
for x in range(len(udtTags)): #strip udtPath from fullPath and add key and value to dictionary
udt[udtTags[x].replace(udtPath, “”)] = tagValues[x]