Rule Purposes
- Last UpdatedJan 13, 2023
- 1 minute read
Various rule types are available for different scenarios. The purpose attribute of a DRULE is used to specify the use of the rule. Depending on the type of rule, the rulatt or dkeyarray attributes of a DRULE may need to be set to inform the system which attribute or property the rule is attempting to set.
The following DRULE purposes are valid for the rules engine:
-
ATTR - Attribute rule. The rule sets the attribute indicated by the rulatt attribute on the DRULE.
-
DESP - Design Parameter Rule. The rule sets the design parameters indicated by the dkeyarray attribute.
-
SPRE - Specification Reference Rule. If the rule is associated with a template DDAT, it sets the spref of an element contained in a template. The dkeyarray can be set to the key of the template DDAT.
-
WDTR - Weld Detail Reference Rule. If the rule is associated with a JWELD, it sets the weld detail of the STWELD when created.