Creating a calculated representation specification rule

Calculated representation specification rules contain descriptive information to identify the rule as well as the Structured Query Language (SQL) statements and Visual Basic Scripting Edition (VBScript) expressions that define the symbolization for the statement. The SQL statements allow you to choose the attributes you want to use from both feature layers and stand-alone tables. For example, you can construct a query in which you include features where the Name field in a feature class is equal to the Full_Name field in a stand-alone table.

手順:
  1. Right-click the layer for which you want to define the calculated representations and click Properties.

    The Layer Properties dialog box appears.

  2. Click the Calculated Representations tab.

    Calculated Representations tab

  3. Click the Specification drop-down arrow and choose the specification for which you want to create the rule.
  4. Click Options and click New Rule.

    A new row appears in the rule table.

  5. Double-click the Rule Description field and type a name for the rule.
  6. Click the ellipsis (...) in the Representation Name field.

    The Representation properties dialog box appears.

  7. Check the Edit Options check box.

    The following items become available:

    • ID Field text box
    • Override Field text box
    • Store change to geometry as representation override option
    • Change the geometry of the supporting feature option

    Representation properties dialog box
  8. Click Add to change the name in the Name text box.

    The New Representation Name dialog box appears.

  9. If necessary, type a new name for the representation rule in the text box.
    メモメモ:

    The default name is <feature layer name>_<specification name>.

  10. Click OK.
  11. If necessary, type the name of a different field to use for storing the RuleIDs in the ID Field text box.
  12. If necessary, type the name of a different field to use for storing override information in the Override Field text box.
  13. Choose an option for storing the geometry override information.
  14. Click OK.

    The Calculated Representations tab appears.

  15. Click the SQL Statement drop-down arrow and choose Edit SQL statement.

    The Query Builder dialog box appears.

  16. Define a statement that includes the features you want to symbolize.
  17. Click OK.
  18. If necessary, click the Expression drop-down arrow and choose Edit Expression.

    The Expression Parser dialog box appears.

  19. Define the expression that refines the symbolization of the results of the SQL statement.
  20. Click OK.
  21. Click the ellipsis (...) in the Representation Rule field.

    The Representation Rule Selector dialog box appears for the geometry type that matches the layer for which you are creating the representation rule.

  22. Choose the representation you want to use from an available style.
  23. Click OK.

    The Calculated Representations tab appears.

    At this point, you can either finish the rule creation process or define fields that allow you to override the default symbol.

  24. To ensure the feature class is updated with the rule information, verify that the Update Feature Class(es) check box is checked.
  25. Click OK.

9/30/2010