Share

To specify a rule style

Use the Rule Style property to specify a default style for imported data, or map one property from the original data source to the Rule Style model property and create Style Rules for each individual value of the data source property.

Note: The Manual Style property overrides the Rule Style property for selected features. Edit the Manual Style property in the Properties Palette.
  1. Import a database or file-based data source.

  2. Double-click the new data source in the Data Sources panel to open the Data Configuration dialog box.

  3. Configure the imported data Type and navigate to the Common tab.

  4. Choose one of the following options:

    rule style

    a. Click to expand the drop-down list, and select a data source property to specify that property as a rule style.

    Note: If you specify a data source property as a Rule Style, you can also define style rules to map individual values of that property to individual styles. See below for an example.

    b. Click to create an expression to filter the Rule Style property you specify.

    c. Click to open the Style Chooser and select a default style to apply to all the feature(s) in the feature class. You can create Style Rules to override the default Rule Style using another model property field such as Manual Style.

Example of defining Style Rules for a Rule Style property

  1. Perform Steps #1-4a from the section above. For example, if you imported buildings data and your data has a Building_ID property, you could specify that property as the Rule Style and then assign different styles to individual values of the Building__ID property using Style Rules.

    Note: Alternatively, for this example you could directly map the Building_ID data source property to the Building_Complex_ID model property using the Table tab of the Data Source Configuration dialog box.
  2. Click Manage glyph Display glyph Rule Style to open the Style Rules panel.

  3. Click the tab for the desired feature class. In this example, choose the Buildings tab.

  4. Click add in the Style Rules panel to add a new style rule. Type a name for the new style rule and press OK.

  5. Double-click the new style rule in the Style Rules panel to open the Rules Editor.

  6. Click edit in the Expression field to open the Expression Editor, and enter the desired filter expression. For example, input BUILDING_ID = Downtown Hospital Complex OR BUILDING_ID = Uptown Hospital Complex to select the Downtown OR Uptown Hospital Complex if your original data source contains those values for the BUILDING_ID property. Press OK.

  7. Click add In the Styles section of the Rule Editor to assign a style (such as "Facade/Concrete & Glass/Elodie") to the features specified by the expression.

  8. Repeat steps 6 and 7 until you have defined style rules for all individual values of the Rule Style property. Press OK in the Rules Editor.

  9. Click Run Rules in the Style Rules panel to apply the changes to your model.

Was this information helpful?