Disabled Tags

For your template visibility when the tag is Disabled you can use the following script in the propertyChange event of the template, it’s generic so you don’t have to worry about any binding -

#hide the template if the dataQuality is 410 (Disabled) if event.propertyName == "dataQuality": if event.source.dataQuality == 410: event.source.visible = 0 else: event.source.visible = 1

To get the dotfield values you’ll need to use Indirect Binding. Your UDT has a folder called Meta that contains the string variable TagPath that you can use for Indirect Binding.

Personally I set up my UDTs with a folder called MetaData that contains memory tags that hold meta data about the UDT like EngHigh, FormatString, TrendScale, etc. If I have a Tank UDT it’ll have a level tag and multiple setpoint tags, all those tags use the same meta data and I find it easier to reference the tags in my MetaData folder, plus you don’t need to use Indirect Binding to get to the dotfields.