Edit UDT Type (not instance) through script

Hi,

I need to add a lot of tags to different UDT Types.
I can easily create the tags using the system.tag.addTag() function in the script console, but it seems like I cannot add tags to an UDT Type using script.
Am I doing it wrong or can’t it be done?

Thanks

Are they all the same tags? If so, you could perhaps structure it with parent-child UDTs. All tags you define on a parent UDT will be inherited by the child UDT.

One major annoyance is that you can’t change the parent of an UDT once the child is created …

So perhaps you can create an empty parent first, export your tags to XML, modify the XML by hand (with a decent text editor like Notepad++ on Windows), and import the XML again.

It’s probably enough to add the line <Property name="UDTParentType">path/to/UDTParent</Property> per UDT to your XML, but best try with a small example first to see if everything imports nicely.