[FEATURE] Allow referencing UDT Instance props targetted with relative referencing e.g. '[.]../.Enabled'

It would be useful to be able to reference UDT Instance and folder props directly from a relative reference from a tag within the UDT instance / folder, e.g. on a Value Change event on a tag within a UDT, being able to use this to reference the UDT Instance's Enabled prop:
'[.]../.Enabled'
Instead, this results in
ValueError: Invalid path element '[.]../.Enabled': Tag properties can only occur after a tag name

For this, you either have to name the UDT instance explicitly ('[.]../InstanceName.Enabled') which isn't suitable for templating, or you have to use something like udtInstancePath = '/'.join(tagPath.split('/')[:-1]) which is a bit of a wordful, and certainly not user-friendly for newcomers.

1 Like