To define style rules

Style Rules use expressions to specify criteria that determine which styles will be applied to individual features in a feature class, based on the values of a data source property or model property you specify.

  1. Click .
  2. In the Style Rules Panel, click the tab for the desired feature class to style. The tabs are on the left side of the Style Rules panel. For example, to create a rule for buildings, click the Buildings tab.
  3. Click to create a new style rule. When prompted, enter a name for this style rule, for example, "Red Brick Buildings." After clicking OK, the new style name appears in the Rule Editing window.
  4. Select the new style rule and click or double-click it to open the Rule Editor. Optionally, enter a description for the style.
  5. Click under the Expression field. In the Create Filter Expression dialog box, create an expression to filter the features you wish to style, then click OK.
    Note: If you don't create a filter expression for the Style Rule, the Style Rule you create will apply to the entire feature class.
  6. In the Rule Editor, click to display the Select Style dialog box. Select the style you want. Features that meet the criteria of the expression you created for this style rule will use the style you specify.
  7. When you are finished with this rule, click OK.
    Note: If you are defining Rule Style rules, continue adding style rules until you have defined one for each Rule Style value.
Example Style Rule Expressions
Feature Class Style Rule Expression Result
Buildings BUILDING_COMPLEX_ID = Downtown Hospital Complex OR BUILDING_COMPLEX_ID = Uptown Hospital Complex

Use the designated style for any building that is part of one of these hospital complexes.

Roads LANES_BACKWARD > 2 AND LANES_FORWARD > 2

Use the designated style for roads that are two lanes or more in both directions.

Pipes LOCATION:INSIDE:CIRCLE.ID1
Note: The syntax for this type of expression is inserted automatically when you draw the circle.

Use the designated style for pipes within the circle you draw on the model.

Advanced Tips