MicroStation CONNECT Edition Help

Conditions for Display Rules

Conditions for display rules are based on data available in context objects. Context objects are elements, models, references, views, files, and named groups. Conditions also support items and custom item types or in other words domain as well as user specified properties.

You can create conditions in the Condition Editor dialog. The conditions can be comparing a property with a value or comparing one property with another property.

The description for a condition is automatically generated from the conditions that you create. You can override the description in the Description field of the Condition Editor dialog to make it more understandable. For example, the condition ELEMENT.Shapes.Area > 20.000M2 can be renamed as Big Rooms. The same description displays in the Display Rules dialog.

Criteria Based Grouping

You can have more than one criterion connected by logical operators "AND" and "OR". This helps in creating a combination of criteria for conditions.

If you have three or more criteria in the Condition Editor dialog, a check box is displayed next to each criterion. When you turn on two or more check boxes, the Group Selected Criteria icon is available and you can click it to group the selected the criteria.

Examples of Conditions for Display Rules

  1. You want to identify all the elements that are of type "Room".

    ELEMENT Is Room

    Where,

    ELEMENT - is the type of data or context object, such as element, model, file, or reference.

    Is Room - is the property that identify whether the element is of type Room.

  2. You want to identify all the shapes in your model that have an area greater than 20 square meters. To achieve this, you can create the following condition in the Condition Editor dialog:

    ELEMENT.Shapes.Area > 20.000M2

    Where,

    ELEMENT - is the type of data or context object, such as element, model, file, or reference.

    Shapes.Area - is the name of the property whose value is the area of the element.

    > - Comparison operator. You can also use =, <, >, <=, >=.

    20.000M2 - is the value against which the property will be compared.

  3. You want to identify all the shapes in your model greater than 20 square meters and are also occupied. To achieve this, you will have to create two criteria in the condition, as shown below.

    ELEMENT.Shapes.Area > 20.000M2

    AND ELEMENT.Room.Occupied = Yes

    Where,

    ELEMENT - is the type of data or context object, such as element, model, file, or reference.

    Shapes.Area - is the name of the property whose value is the area of the element.

    > - Comparison operator. You can also use =, <, >, <=, >=.

    20.000M2 - is the value against which the property will be compared.

    AND - is the logical AND operator.

    Room.Occupied - is the name of the property which gives the status whether the room is occupied.

    Yes - is the value of the Room.Occupied property.

  4. You want to identify the following:
    1. all shapes on floor 1 that have an area greater than 20 square meters and
    2. all shapes on floor 2 that have an area greater than 30 square meters

    To achieve the above to criteria, you can use criteria grouping and create the following condition in Condition Editor dialog:

    (

    ELEMENT.Room.In floor = "1"

    AND ELEMENT.Shapes.Area > 20.000SQ.M)

    )

    OR

    (

    ELEMENT.Room.In floor = "2"

    AND ELEMENT.Shapes.Area > 30.000SQ.M

    )

    Where,

    ( ) - the parenthesis indicate criteria grouping.

    ELEMENT - is the type of data or context object, such as element, model, file, or reference.

    Room.In floor - is the name of the property whose value is the floor number of the element.

    = - Comparison operator. You can also use =, <, >, <=, >=.

    1 and 2 - values against which the properties will be compared.

    AND and OR - is the logical AND operator.

    Shapes.Area - is the name of the property whose value is the area of the element.

    20.000M2 and 30.000M2 - values against which the properties will be compared.

  5. You have an item type that identifies small rooms and is associated with your file, model, reference, or view. You want to create a condition that compares the value of this item type with the area of your rooms.

    To achieve this, you can create the following condition:

    ELEMENT.Shapes.Area <= MODEL.RoomThresholds.SmallRoomSize

    Where,

    ELEMENT - is the type of data or context object, such as element, model, file, or reference.

    Shapes.Area - is the name of the property whose value is the area of the element.

    <= - Comparison operator. You can also use =, <, >, >=.

    MODEL - is the type of data or context object, such as element, model, file, or reference.

    RoomThreshold - is the name of the item type.

    SmallRoomSize - is the name of the property definition in the item type.