7.2. Animate the Visibility of an Object

About this task

  • Configuration.
  • Runtime example.

Configuration

Visibility animation lets you display or hide screen elements based on the evaluation of an expression.

Procedure

  1. Select the object that will or will not display.
  2. Open the object's Properties dialog box.
  3. Select Color Animation>
  4. Enter an expression in the Expression field in the Visibility box.

    The expression can be one or more point ID's and mathematical operators that will be evaluated during runtime as follows.

    Evaluation The object is:
    TRUE Visible. Users can execute any procedures assigned to the object.
    FALSE Invisible Users cannot access procedures associated with the object.
  5. Click Apply.

    CimEdit will evaluate the ??expression during runtime.

    Runtime Example

    An arrow is configured to be visible or invisible base on the configured Visibility expression.

  6. The expression uses the following point.
    Point ID Type Class
    N2B Virtual Boolean
  7. Expressions in the list are as follows.
    • N2B EQ 1

    Note: The point N2B must equal 1 for the selected object to be visible.

    Runtime Example

    An operator must press X+Enter on an on screen keypad when a point (LEVELR201) value is equal to or greater than 95.

    The expression was entered for instruction text in the Visibility>Expression field.

    During runtime:

    • The point value is equal to or greater than 95.

    Instruction text displays on the screen.

    • The point value is less than 95.

    Instruction text does not display on the screen.