Rule Features 

I_RulesP2.gif (241 bytes) Select the Rule icon to create a rule, write its code, test its syntax and apply it to your document.

A rule is a set of instructions, generally based on conditional statements, whereby the relationship between parameters is controlled. In addition, depending on the context described by the rule instructions, actions can be executed:

  • To set a value or a formula to parameters, including feature activity
  • To display information windows
  • To run Visual Basic macros stored in external files or in the V5 document.
  • To affect points, curves and surfaces and thus allow contextual and automatic topological changes

In the specification tree, the rule is displayed as a relation that can be activated or deactivated. Like any feature, a rule can be manipulated from its contextual menu.

A rule is executed when one of its input parameters has changed or when one of its input features has changed and if you require the update of the rule.

The consequence is that it is impossible for you to completely control when the rule is to be fired.  As a result, rules can only manipulate parameters and features and are to be used to control the status of a design (change of parameters and geometry). 

 

If you want to control when the action takes place, use the Reaction feature.

About the Rule Editor
Creating a Rule
Using Rules and Checks in a Power Copy
Handling Errors