Hello,
I’m trying to access all components of the UDT in my project.
I can do it with the UDT instance in Tags.
tags = system.tag.browseTags(parentPath="",udtParentType="myUDTytpe", recursive=True)
paramUDT = system.tag.browseTags(parentPath=tags[0].path, recursive=True)
for param in paramUDT:
if not param.isFolder():
description = system.tag.getAttribute(param.fullPath,"Documentation")
nameParameter = param.fullPath.split("/")[-1]
print nameParameter + ":" + description
But I need do this with all UDT in the proyect, not olny the UDT instance.
I have the list of UDT by this script.
tags = system.tag.browseTags(parentPath="_types_", recursive =1)
for tag in tags:
if str(tag.getTagType()) == 'UDT_DEF':
print "/".join(tag.fullPath.split("/")[1:])
Someone can help me?