This tool aggregates property values to the group object itself from the objects the group contains. The formulas can use constants, group properties, and, of course, building element objects’ properties. The very basic operation is summarizing property values in different ways, but there are other aggregation types available, too.
In Simplebim systems, zones, classifications, and type objects are also groups.
Settings
There are four different tools for calculating and aggregating properties. They all share common settings, which you can find from the Calculate Properties for Objects tool's documentation.
Here are the settings specific for the Aggregate Properties for Groups tool.
Target
Defines the groups whose property values are calculated. Each group gets its own value, aggregated from the objects in that group.
The setting shows the group selection directly, because this tool works on groups only. Select a group, several groups or a whole group category, and use the category and parent group filters to narrow down the list of groups. You can also type the name or key of a group or a group category.
Aggregation Type
This option applies when you're using either the for Groups, for Containers, or for Connected Objects tool.
For example, if you want to calculate the sum of the object volumes from the objects assigned to the group, you would choose Sum here.
The options here are Sum, Average, Min, Max, Count, Median, Variance, and Concatenate String. The default value is Sum.
The basic aggregation types do what their name says. Note that you can calculate Sum, Average, Median, and Variance based on a formula, which produces a numeric result.
Min and Max can be found for any numeric result, but also for dates and times. You could, for example, find the largest volume from all the objects included in the group. Or you could find the latest or earliest date.
For Count, your formula must be logical. For example, [Height]>3000 calculates the number of objects within the group whose height is greater than 3000 (in model length units). To calculate the total number of objects in the group, regardless of their properties, set the formula to True.
For the Concatenate String, the formula can be anything; however, the end result is always converted to text. The values included in the concatenated result will be the unique set of values from all the values calculated based on the formula, instead of including all the values.
Count Empty Values
This setting applies when you are aggregating values. It might be that not all the objects within your groups have a proper value for the properties you use in your aggregation. Say there are objects whose volume is, for some reason, zero or empty, and you want to calculate the average of the volumes. Do you want to include the zero values in your average? Or when finding the minimum value, do you want the non-zero minimum or zero? Set this parameter accordingly. The default value is OFF.
Concatenate String Separator
This setting is available when the Aggregation Type is Concatenate String. In order to make sense of the result, the values need to be separated with a separator. This can be anything. A space, hyphen, colon, or semicolon is probably the most common one. For example, if you were to combine the material names and use a hyphen as your separator, the end result would look something like this:
Concrete-Steel-Timber
Create if Missing
This setting and the PropertySet Name, Result Property, Result Unit and Force Data Type settings under it are described in the Calculate Properties for Objects article. The Result Property is a group property of the groups in the Target.
Example Formulas
For all these examples, you need to use either the Aggregate Properties for Groups or for Containers tool.
The very basic function is to summarize the values produced by the formula. So, it can be sum of just one object property. Set the aggregation type to Sum and input the formula:
[Volume]
Or it could be sum of some calculation like for example weight:
7250*[Volume]
You can find the minimum or maximum value from any measure value property, or calculation result. Just like above, this would find for example the minimum area. Set the aggregation type to Min and input the formula:
[Area]
Or you can use any formula, which produces numeric values:
[Group|Workload]*[Volume]
To Concatenate a string from the object properties to the group use something like this. Remember to set the Concatenate String Separator:
[Material]
You can even combine the object identifiers with the Groups own if that makes sense:
[Group|Name] & "-" & [Building Element Construction Type]
And what is cool, the properties you include to the concatenated string don’t even have to be text properties themselves:
[Building Element Construction Type] & "-" & [Height] & "*" & [Width]
Release Notes
Simplebim 12.0 SR1
- New Create if Missing setting, shared by all four Calculate Properties tools.
- The Group or Group Category setting was renamed to Target. It now shows the group selection directly, without the choice between Object Group and Raw Value. A saved value that the group selection cannot show is shown as a raw value, which you can edit.
- The category drop-down of the Target lists every group category in the model, including the categories of groups created from the Objects palette or by other tools. Classification systems, such as Uniformat, are listed as categories. Empty categories and groups are hidden until you choose Show Empty Items.
Related to
Comments
0 comments
Please sign in to leave a comment.