Require Object Group

Jiri Hietanen
Jiri Hietanen
  • Updated

The Require Object Group tool sets validation rules for object groups. The rule says that a group must have objects, or that a group must not have objects. With No Requirement, the tool removes the rule.

For example, you can check that the model has a group that your later processing needs and that the group is not empty. Or you can collect objects with problems into a group and require that the group has no objects.

There are also other validation tools:

  • To require that object classes have objects or do not have objects, use the Require Object Class tool.
  • To require that the objects in a group have values for properties, use the Require Properties tool with the Target Object Group.
  • To set rules for the values of text properties of the objects in a group, use the Set Text Property Rules tool.
  • To remove the rules of all groups at once, use the Clear Validation tool.

How the groups are validated

  • A group that must have objects passes when it has included objects. It fails when it has no objects, or when all its objects are excluded.
  • A group that must not have objects passes when it has no included objects. It fails when it has included objects.

A group 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 group with a status icon. It shows a validated group even when the group is empty. Hover the mouse over the icon to see the validation message. You can read more in Objects Palette.

One rule per group

A group has one rule. When you run the tool for a group 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.

Groups that do not exist

You can also set the rule for a group that is not in the model yet, for example a group that a later step of the dataflow creates. If the Group(s) setting names the group and no such group exists, the tool stores the rule by the name of the group, together with the group category and the parent group of the setting. The tool reports that the group does not exist and that the requirement was set for the missing group.

The rule applies to the group as soon as a group with that name exists in that group category and below that parent group.

Until then, the Objects palette shows the missing group as a row of its own, under its parent group or its group category. A parent group or group category that does not exist either is shown as a row too. The row of the missing group is marked as failed for Must Have Objects and as passed for Must Not Have Objects. These rows cannot be selected.

The group must be named one by one in the setting. A group name with wildcards, all the groups of a group category or of a parent group, and a list of groups combined with AND or NOT do not name single groups, so the tool sets the rule only for the groups that exist.

Settings

Group(s)

Defines the groups whose rule is set or removed. You can select one group, several groups, or all the groups of a group category or below a parent group. Group names can contain the wildcards * and ?. The setting has no default value.

The rule is set for the groups whether their objects are included or excluded. Empty groups get the rule too.

If the setting is empty, or if it does not find any groups and does not name a group that does not exist, the tool reports that no groups were found and does not change the model.

Requirement

Defines the rule. The default value is Must Have Objects.

Must Have Objects

Each of the groups must have objects.

Must Not Have Objects

None of the groups can have objects.

No Requirement

The groups have no rule. The tool removes the rule from the groups, also a rule that was set for a group by name while the group did not exist.

Release Notes

This tool was added in Simplebim 12.0 SR2

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.