<< Click to Display Table of Contents >> Simple visibility |
|
Let's assume that in our project there is a certain object with a certain parameter (tag). We want the object to be invisible unless the tag value is "0".
1. Create a tag named State:
2. Create a Rectangle object (there may be other objects instead of a Rectangle):
3. Set up the “Visibility” property (enable the property, bind the State tag, the value of which determines the visibility of the object, set the tag value to “0” and the comparison type “Tag.PV==Value”). The object will be visible if the value of our State tag is 0, and invisible if the tag value is not 0:
4. Let's Run simulation to check the settings:
You can download this project here.