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.*.
GET qid, attribute.Name, buildingStorey.attribute.Name, buildingStorey.attribute.Elevation WHERE type = IFCDOORSeveral storey features at once, in the parenthesised form:
GET qid, buildingStorey(attribute.Name, attribute.Elevation, calculated.property.level) WHERE type = IFCWINDOWFiltering by storey#
GET qid, attribute.Name WHERE type = IFCWALL AND buildingStorey.attribute.Name = "Level 1"GET qid, attribute.Name WHERE type = IFCSPACE AND buildingStorey.calculated.property.level >= 2GET qid, type WHERE buildingStorey.qid IN $storeysThe 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#
GET buildingStorey.attribute.Name, type, COUNT(qid) WHERE type IN (IFCDOOR, IFCWINDOW) GROUP BY buildingStorey.attribute.Name, typeGET buildingStorey.attribute.Name AS Storey, SUM(quantity.Qto_SpaceBaseQuantities.NetFloorArea) AS FloorArea WHERE type = IFCSPACE GROUP BY buildingStorey.attribute.NameThe storeys themselves#
Storeys are objects of class IFCBUILDINGSTOREY; attribute.Elevation orders them, calculated.property.level numbers them.
GET qid, attribute.Name, attribute.Elevation, calculated.property.level WHERE type = IFCBUILDINGSTOREY ORDER BY attribute.ElevationTo 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).
GET qid, attribute.Name, space.attribute.LongName, building.attribute.Name WHERE type = IFCFURNISHINGELEMENTUsed in#
- Relations — doors per storey.
- Grouping and aggregates — area per storey.