An expert rule is a set of
instructions whereby you can start an action for any object having
a type defined in a type list. The action generally consists of a set of instructions
modifying the document (but can be a message which does not modify
the document). The action specified in a rule can be conditionally
executed depending on the value of one or more expressions. In an
expert rule, objects are manipulated through their attributes and
methods (if any).
The For All ()
box in which you define the list of types the rule applies to:
S:Shell ; H:Hole
The rule body:
if (S.Activity == true) AND (H.Activity == true )
Message (All shells and holes are activated)
Important:
Be careful when using multiple types in the For All () box.
If no object is declared in the For All () box in the document (for example no Shell in the document), the rule is not executed even if objects of other types are declared (for example one object Hole in the document).