Create a validation rule - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

How do I decide whether to select a class definition or a relationship definition schema type when creating a validation rule?

When you create a validation rule, select the class definition schema type to validate objects and their properties, and select the relationship definition schema type to validate relationships and their properties exposed by their linked interfaces.

What does the End for Error Propagation option in the Rule Details page do?

The End for Error Propagation option specifies either one of the ends of a relationship to be considered as invalid when the imported data fails to be validated against a relationship property rule.

  1. From the RuleSets pane, select a rule set in which you want to create the new rule.

    Rules must belong to at least one rule set.

  2. Click Create a new Rule on the Rules toolbar to open the Create Rule dialog box.

  3. In the Basic Details page, type a name and description for the new validation rule.

  4. Select either a Class Definition or a Relationship Definition from the Schema Type options.

  5. In the Rule Type box, select the validation rule type required from the list. For more information, see Validation rule description.

    The validation rule types listed in the Rule Type box are dependent on the schema type selected.

  6. Search for the class definition or relationship definition on which you want to base the rule in the Class Definition or Relationship Definition boxes.

  7. Select the class definition or relationship definition required from the search results.

    You can check the Turn Validation Rule Off option if you do not require the rule to run on specific data.

  8. In the Validation Rule Error Message box, type the full error message to be displayed when the validation rule fails.

  9. From the Validation Rule Severity Level list box, select the validation rule severity level to be assigned when this rule fails.

  10. Click Next.

  11. In the Rule Details page, use the Property Definition box to search for the property definition on which you want to base this rule, and click Search .

  12. Choose a property from the results list box.

  13. Provide additional details for the rule, as necessary, based on the rule type selected. Click Next.

  14. View the Summary and review the details defined for the rule.

    You can click any page headings to edit the properties on that page, as required.

  15. Click Finish to save the validation rule. The new validation rule appears in the Rules list and displays the properties associated with the rule in the Properties pane.