Definition
An expert check is made up of two parts:
- The definition of the feature types the check applies to:
dim (argument name): TPSDimensionAnnot (Type).
- The check body:
if(dim.DimensionValue >= 15mm) ThisCheck.AddNewTuple(True, dim) else ThisCheck.AddNewTuple(False, dim)
The check above tests the dimension of the features
of the TPSDimensionAnnot
type belonging to your
document. The AddNewTuple
method allows validating (TRUE
) or invalidating (FALSE
) a check for a given input object, in our example TPSDimensionAnnot
.
The list of objects and attributes to be used in expert checks appears in the object browser.
You can find out what features are valid or invalid by generating and editing a report.
Important:
When using multiple types in the For All () box, if there is one type of object not declared in the document (for example no Shell in the document), the rule is not executed even if the other types of objects are correctly declared in the document (for example a Hole object). |