Rule

Rule class

Represents a single validation rule in a diagram validation rule set.

Rule()

Constructor.

Properties

NameTypeDescription
RuleFilterRuleValueSpecifies the logical expression that determines whether the validation rule should be applied to a target object.
RuleTestRuleValueSpecifies the logical expression that determines whether the target object satisfies the validation rule
IDlongSpecifies the unique identifier of the validation rule.
NameUStringSpecifies the universal name of the validation rule.
CategoryStringSpecifies the text displayed in the Category column of the Issues window. Default is an empty string.
DescriptionStringthe description of the validation rule that appears in the user interface. Default is “Unknown”.
RuleTargetintSpecifies the type of object to which the validation rule applies. The value of the property is VisRuleTargetsValue inte
IgnoredintSpecifies whether the validation rule is currently ignored. Default is False. The value of the property is BOOL integer