This tool adds a new group to the model or replaces/modifies an existing group.
The groups can be used for classifying the building elements. Or they can be used in dataflows to define the objects for a dataflow step.
Adding and modifying groups is one of the key skills when creating and using dataflows. Each step in a dataflow takes in a group of objects (a target) that it processes. Most of the data processing operations are done on a subset of objects from the model, not on all objects.
Objects to the groups can be assigned manually from the Simplebim UI, or automatically with the rules.
There are also other ways to create groups:
- To create one group for each unique value of a property, use the Generate Groups by Property and Generate Child Groups by Property tools.
- Many tools, such as Convert Objects and Merge Model, can create a group for the objects they process.
Settings
Name
Defines the name of the group. This is visible in the Simplebim's UI, like in the picture above. The Name is also the way to use the group in the dataflow steps. The default value is New Group.
Group Type
Defines the type of the group. The default value is Manual.
Manual
The objects are assigned to the group when the tool runs, based on the rule defined with the Rule Type. After that, the group is not updated when the model changes, but objects can be added to and removed from it in the user interface via drag&drop.
Manual Empty
A manual group that initially contains no objects.
Rule Based
The objects in the group are determined by a rule and cannot be assigned manually. The content of the group is automatically updated based on the rule when the model changes.
Container
A container is a group folder that does not contain any objects itself, but can have child groups.
Ungrouped
A special group collecting all objects in the parent group that do not belong to any of the sibling groups. Define the parent group with the Parent Group setting.
Rule Type
Defines how the objects of a Manual or Rule Based group are found. This setting is available for these two group types. The default value is Advanced Query.
Simple Query
A simple rule with one text property, an operator and a list of values. The objects that have the property and whose value matches one of the values are assigned to the group. The rule is defined with the Text Property, Operator, Case Sensitive and Value(s) settings.
Advanced Query
A rule with all the options of the Query Editor. The Query setting has a Preview button that selects the objects the query finds without opening the editor.
Object Selection
The objects are defined with the object selection setting: for example, the objects of an object class, a group or the objects you drag and drop onto the setting. You can read more about selections in Object Selection Syntax.
Expression
A rule written as an expression in the Expression Editor. The expression must return a yes/no value, and the objects for which it returns yes are assigned to the group.
Text Property
This setting is available when the Rule Type is Simple Query.
The name or identity key of the text property used in the rule.
Operator
This setting is available when the Rule Type is Simple Query.
Defines how the value of the property is compared with the values in the Value(s) list. The default value is Equals.
- Equals: the value of the property must be the same as one of the values.
- Contains, Starts With and Ends With: the value of the property must contain, start with or end with one of the values. These operators never match an empty value.
- Is Like (Wildcards): the value of the property must be like one of the values, which can contain the wildcards * and ?. You can read more in Using wildcards (Like -operator).
- Matches Regular Expression: the value of the property must match one of the values interpreted as a regular expression. You can read more in Using Regular Expressions.
- Is Not Equal, Does Not Contain, Does Not Start With, Does Not End With, Is Not Like (Wildcards) and Does Not Match Regular Expression select the objects whose value matches none of the values.
Case Sensitive
This setting is available when the Rule Type is Simple Query.
If ON, upper and lower case letters must match when the values are compared. The default value is OFF.
Value(s)
This setting is available when the Rule Type is Simple Query.
The list of values that the property is compared with. An object is assigned to the group when its value matches any of the values. If the list is empty, the rule is invalid and the tool reports an error.
Group Category
Defines the category of the group. You can use the name or the key of the category. The category must exist in the model, otherwise the group cannot be created. If you leave the setting empty, the Generic Group category is used. The default value is Generic Group. Note that Generic Groups can only be used inside Simplebim. IFC groups are exported to IFC. This setting is not available for the Ungrouped group type.
You can drop a group category from the Objects palette onto the setting to fill in its name or key.
Parent Group
This is an optional setting. If you leave it empty, then the group is created at the top level of the Group Category defined above.
Groups can be hierarchical. Parent Group defines the name of the parent group, under which you want the group to be created. Exactly one group with this name must exist in the Group Category, otherwise the group cannot be created. An Ungrouped group collects the objects of its parent group, so define the parent group for it.
If Group Already Exists
Defines what should be done in the case that a matching group already exists in the model. A group matches when it has the same name in the same Group Category under the same Parent Group. If you leave Parent Group empty, a group with the same name anywhere in the category matches, also a child group. If several groups match, the tool fails and does not change the model.
The options depend on the Group Type. For a Manual group you can choose between the four options below. For the other group types the options are Replace Existing Group and Keep Existing Group Unchanged. The default value is Replace Existing Group.
Replace Existing Group
Replace the already existing group with the new group. The group properties and the child groups of the existing group are kept. A Manual or Rule Based group can replace an existing Manual or Rule Based group: the objects found by the rule replace the objects of a manual group, and the rule replaces the rule of a rule based group. A Container or Ungrouped group can replace only an existing group of the same type, which then gets the new name. In the other cases the tool fails and does not change the model.
Add to Existing Group
Add the objects from the new group into the already existing group. The existing group will be converted into a manual group if needed.
Remove from Existing Group
Remove the objects from the new group from the already existing group. The existing group will be converted into a manual group if needed.
Keep Existing Group Unchanged
Keep the already existing group unchanged and discard the new group. The tool reports that the existing group was kept.
Non-overlapping Child Groups
If ON, an object can belong to only one child group of this group. This restriction applies only to manual child groups. This setting is not available for the Ungrouped group type. The default value is OFF.
Limit Child Groups
If ON, child groups that may be added to this group later can only have objects that this group has. This restriction applies only to manual child groups. This setting is not available for the Container and Ungrouped group types. The default value is OFF.
Do not Create Empty Groups
This setting is available for the Manual and Rule Based group types.
If ON, a new group is not created if the Group Rule does not find any objects. The tool reports this as information. An existing group is modified in any case. The default value is OFF.
Release Notes
Simplebim 12.0 SR1
- The text property rules of the Advanced Query offer the Exists, Not Exists, Applicable and Not Applicable operators, which take no values.
- You can drop a group, a group category or a property from the Objects palette onto the Name, Group Category, Parent Group and Text Property settings to fill them in. When several texts apply, a menu offers the name, key or value to use.
Related to
Comments
0 comments
Please sign in to leave a comment.