Building storeys

The storey an object belongs to — buildingStorey.attribute.Name and Elevation, the level index, filtering and grouping by storey, the storeys themselves, and the other spatial containers.

buildingStorey follows the spatial containment of an object up to its storey and reads features of that storey. It is the most used relation in BQL, so it has its own page; the general mechanism is on Sub-features and relations.

buildingStorey.feature#

Any feature can follow the relation: buildingStorey.attribute.Name, buildingStorey.attribute.Elevation, buildingStorey.qid, buildingStorey.calculated.property.level, buildingStorey.property.*.

BQL#
GET qid, attribute.Name, buildingStorey.attribute.Name, buildingStorey.attribute.Elevation WHERE type = IFCDOOR

Several storey features at once, in the parenthesised form:

BQL#
GET qid, buildingStorey(attribute.Name, attribute.Elevation, calculated.property.level) WHERE type = IFCWINDOW

Filtering by storey#

BQL#
GET qid, attribute.Name WHERE type = IFCWALL AND buildingStorey.attribute.Name = "Level 1"
BQL#
GET qid, attribute.Name WHERE type = IFCSPACE AND buildingStorey.calculated.property.level >= 2
BQL#
GET qid, type WHERE buildingStorey.qid IN $storeys

The level index (calculated.property.level) is independent of how the storeys are named, which makes it the robust key across models (calculated-values#property).

Grouping by storey#

BQL#
GET buildingStorey.attribute.Name, type, COUNT(qid) WHERE type IN (IFCDOOR, IFCWINDOW) GROUP BY buildingStorey.attribute.Name, type
BQL#
GET buildingStorey.attribute.Name AS Storey, SUM(quantity.Qto_SpaceBaseQuantities.NetFloorArea) AS FloorArea WHERE type = IFCSPACE GROUP BY buildingStorey.attribute.Name

The storeys themselves#

Storeys are objects of class IFCBUILDINGSTOREY; attribute.Elevation orders them, calculated.property.level numbers them.

BQL#
GET qid, attribute.Name, attribute.Elevation, calculated.property.level WHERE type = IFCBUILDINGSTOREY ORDER BY attribute.Elevation

To list what a storey contains, query downwards from it with children (sub-features#children).

Other containers#

The same pattern reaches the other levels of the spatial structure: space (the containing IfcSpace), building, site, project, and containedIn (the immediate spatial container, whatever its class).

BQL#
GET qid, attribute.Name, space.attribute.LongName, building.attribute.Name WHERE type = IFCFURNISHINGELEMENT

Used in#