Thanks Kathy, it works great.
Here is my implementation:
Clear steps in editor
system.tag.removeTag(“Compression/Recipe Edit/Recipe”)
system.tag.addTag(parentPath=“Compression/Recipe Edit”, name=“Recipe”, tagType=“UDT_INST” attributes={“UDTParentType”:“CompressionRecipeEdit”})
I’m not sure I would want to use this technique on a tag that was looked at asynchronously such as trending or OPC to prevent errors. Is there any plans to add capability to copy entire UDTs (UDTa = UDTb) as well as subsets (UDTa/Step15 = UDT_Step)? Initializing a UDT could also be handy but could be worked around by copying a blank UDT into the one to be cleared. I see this functionality giving Ignition significant more power in data manipulation.