Type
You can animate the Type property so that the type of fill shading that is applied to the Mimic object varies according to the value or state of an item in the database. For example, you can animate an object so that it uses solid shading when a point is in a normal state but uses hatch shading when the point is in an alarm state.
Each Type corresponds to a number:
Number for Expression | Type |
---|---|
0 |
None |
1 |
Solid |
2 |
Hatch |
4 |
Linear Gradient |
5 |
Pipe Gradient |
6 |
Radial Gradient |
For example, if you wanted a Mimic object to use a hatch fill when a 2 bit digital point is in state 0 and 1 and a solid fill when the point is in state 2 and 3, you could use this expression:
LOOKUP( "DigitalPoint 2.CurrentState" + 1, 2, 2, 1, 1)
Where <DigitalPoint 2> is the location and name of the 2 bit digital point (do not enter the angle brackets < > ), the CurrentState is the point property that animates the Type property of the Mimic object and the numerical values are:
- +1 is needed as LOOKUP is 1 based (starts from 1) whereas the point's states are 0 based (start from 0).
- The first 2 is the Type that will be applied when the point is in State 0. Type 2 is Hatch.
- The second 2 is the Type that will be applied when the point is in State 1. Type 2 is Hatch.
- The second 1 is the Type that will be applied when the point is in State 2. Type 1 is Solid.
- The third 1 is the Type that will be applied when the point is in State 3. Type 1 is Solid.