Check tag binding via Script

Hello, is it possible to check inside of an embedded view via Script, which tag is used for a Property or Tag Binding at one of the Params of this Embedded View?

No, binding information is not exposed to scripting. If you're using an indirect Tag Binding, you could always compose the path externally and then use it within the indirection. Then your attempt to see which Tag is being used would just need to reference the path being stored in some property.

1 Like

Thank you, the idea is to show the connected tag as a Tooltip.

Right, that's very easy as long as you're storing the path to the tag within a property.

Wherever you have a view parameter to which you think you want to pass a tag value, stop. Pass the tag path as a string parameter instead, and use indirect binding inside the view. Then the inner view has access to all of the tag's properties, and can use bidirectional when necessary.

1 Like

Here, my Cylindrical Tank is storing a tag Path in a custom property. The value of the tank is an Indirect Tag Binding to the custom property which stores the tag path, and the tooltip text is bound to that same custom property.

1 Like