Simple visibility

<< Click to Display Table of Contents >>

Navigation:  Examples > Object visibility >

Simple visibility

Previous pageReturn to chapter overviewNext page

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:

 

clip0034

 

2. Create a Rectangle object (there may be other objects instead of a Rectangle):

 

rectangleex

 

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:

 

visiblecommon

 

4. Let's Run simulation to check the settings:

 

visiblecommon

 

You can download this project here.