The Require Object Class tool sets validation rules for object classes. The rule says that an object class must have objects, or that an object class must not have objects. With No Requirement, the tool removes the rule.
For example, you can check that the model has spaces before later steps of the dataflow use them. Or you can check that the model does not have objects of an object class that should not be in it.
There are also other validation tools:
- To require that object groups have objects or do not have objects, use the Require Object Group tool.
- To require that the objects of an object class have values for properties, use the Require Properties tool with the Target Object Class.
- To set rules for the values of text properties, use the Set Text Property Rules tool.
- To remove the rules of all object classes at once, use the Clear Validation tool.
How the object classes are validated
- An object class that must have objects passes when it has included objects. It fails when it has no objects, or when all its objects are excluded.
- An object class that must not have objects passes when it has no included objects. It fails when it has included objects.
An object class that must have objects and has them can still fail because of the rules of its properties, see the Require Properties and Set Text Property Rules tools.
The Objects palette shows the result of each object class with a status icon. Hover the mouse over the icon to see the validation message. Empty object classes are hidden by default, but an empty object class that has a rule is always shown: with the failed icon when it must have objects, and with the passed icon when it must not have objects. You can read more in Objects Palette.
One rule per object class
An object class has one rule. When you run the tool for an object class that already has a rule, the new rule replaces the old one. For example, Must Not Have Objects replaces Must Have Objects. Running the tool again with the same settings does not add anything.
Settings
Object Class(es)
Defines the object classes whose rule is set or removed. You can choose All, one object class or a list of object classes. The setting has no default value.
The drop-down lists the object classes that have objects. To set the rule for an object class that has no objects, choose one object class and type its name. The name is not case-sensitive, and wildcards are not supported.
The rule is set for the object classes whether their objects are included or excluded. Empty object classes get the rule too.
The object classes must be in the model. Unlike the Require Object Group tool, this tool does not store a rule for an object class that the model does not have. An object class of the setting that is not found is skipped without a warning. If the setting is empty or does not find any object classes, the tool reports that no object classes were found and does not change the model.
With All, the rule is set for every object class. With Must Have Objects, every object class that has no included objects fails, also the empty object classes. Select only the object classes that the model must have. With No Requirement, All removes the rules of all object classes.
Requirement
Defines the rule. The default value is Must Have Objects.
Must Have Objects
Each of the object classes must have objects.
Must Not Have Objects
None of the object classes can have objects.
No Requirement
The object classes have no rule. The tool removes the rule from the object classes.
Release Notes
This tool was added in Simplebim 12.0 SR2
Related to
Comments
0 comments
Please sign in to leave a comment.