Jump to content

Enrich the Model, Conditional

The basic enrichment works with one condition, for example:

  • For all Walls where the Name starts with ‘EXT’ set the value of ‘Is External’ to Yes

If you need to use multiple conditions you can use groups. Let’s say all office spaces on Floor 1 are occupied by tenant A and all office spaces on Floor 2 by tenant B. The logic in this case would be:

  • For all Spaces where Name is ‘Office’ and Storey is ‘Floor 1’ set the value of Tenant to ‘A’
  • For all Spaces where Name is ‘Office’ and Storey is ‘Floor 2’ set the value of Tenant to ‘B’

To accomplish this you can first create a group that contains all office spaces. The group rule would be:

  • A group called ‘Offices’ contains all Spaces where Name is ‘Office’

You can also create groups with more complex rules for example if only the small offices are occupied by tenant A you could create a group called ‘Small Offices’ that contains all Spaces where Name is ‘Office’ and the value of Area is smaller than 20m2.

In the enrichment you can then use the group with this logic:

  • For all objects in group ‘Offices’ where Storey is ‘Floor 1’ set the value of Tenant to ‘A’
  • For all objects in group ‘Offices’ where Storey is ‘Floor 2’ set the value of Tenant to ‘B’

If you don’t want to include the group in your model you can make it a temporary group that is only used in the context of the template. To accomplish, this prefix the group name with a backslash character, for example ‘\Offices’