← ForensicBIM Knowledge BaseMethodology & checks

Spatial structure and containment

Summary

Every object in an IFC file should have a place: a storey of a building, a bridge, road or railway or one of its parts, or the site itself for landscape and other site works. That place is how people and software find things, by floor, by span or by section of road. An element without a place is still in the file, but it drops out of every schedule, filter and quantity that is organised by location.

The report checks this on the Structure page and draws the result in the Spatial structure card.

What a sound file has: one IfcSite, one facility under it, storeys under a building, and at least 95% of the elements contained in that tree. Facility parts are optional, and landscape, terrain and other site works can sit directly in the site, with no facility at all.

How IFC organises an asset

IFC builds a tree of spatial elements joined by aggregation (IfcRelAggregates): the project, the site, the facility and then its storeys or parts. Each physical element is placed in one of those spatial elements by a containment relationship (IfcRelContainedInSpatialStructure).

LevelBuildingInfrastructure (IFC 4.3)
ProjectIfcProjectIfcProject
SiteIfcSiteIfcSite
FacilityIfcBuildingIfcBridge, IfcRoad, IfcRailway, IfcMarineFacility, or IfcFacility for assets without their own class, such as tunnels
Level or partIfcBuildingStoreyIfcBridgePart, IfcRoadPart, IfcRailwayPart or IfcFacilityPart (optional)
RoomsIfcSpaceNot expected

Landscape and other site-level models

A landscape, terrain or site-works model often has no building, bridge or road: IfcProject → IfcSite, with the trees, terrain, paving and street furniture contained in the site. That is valid IFC. The report treats such a file as a site-level model when it has no facility, its elements are contained in the site, no storeys or parts hang outside a facility, and building parts (walls, curtain walls, doors, windows, roofs, stairs, slabs, columns, beams, coverings, plates, footings, piles, chimneys, shading devices, reinforcement and tendons) are less than half of its elements. A site-only file made mostly of building parts is still treated as a building without its IfcBuilding.

Where you meet it in the report

The Spatial structure card on the Structure page (How the model is organised from project down to levels or facility parts) has three parts:

  • A summary line: project, sites, facilities with their types, storeys or parts, and spaces with their area. It ends in a status: Hierarchy complete, Site-level model, Needs attention, Looks federated, Incomplete or No facility.
  • The findings: one row per rule with the facilities it affects. It opens by itself when it holds a warning or a problem.
  • A table of facilities and their parts, with class, predefined type, what each contains and a short note on affected rows.

The check cards below link to this card.

The checks and how they are scored

Elements are all physical objects (IfcElement) except openings.

CheckWhat it measuresScoreWeight
Spatial containmentShare of elements contained in a spatial element, or part of an assemblyThe share itself; at most 20 when the model has no facility, unless it is a site-level model1.5 (key), gate
Spatial hierarchyStoreys under buildings; parts under other facilities are optional100 with storeys or parts, for a bridge, road, railway or other facility without parts, and for a site-level model; 50 for a building without storeys; 20 without a facility1, gate
Number of sitesIfcSite elements in the project tree100 for one site, 40 for none, 60 for more than one1
Spatial structure warningsThe warnings behind the card's findingsSee below; 20 without a facility, unless it is a site-level model1, gate
Spaces (buildings only)Number of IfcSpace elements100 with spaces, 0 without, on models that look architectural (walls, slabs and at least one door or window); otherwise information only1

Only containment counts as a place. An element that is merely referenced to a storey or part (IfcRelReferencedInSpatialStructure) is not counted. Parts of an assembly, such as the flights of a stair, count as placed through their parent.

For Spatial structure warnings, each distinct warning costs 25 points, or 10 for several roads, railways, bridges or tunnels of one type. A building without storeys gives one warning per building. Notes are not scored. Another 10 come off when the same warning occurs more than once, and 15 more when several buildings share one model. The score does not fall below 30, or 20 with several buildings.

Containment, hierarchy and warnings are gates: at 95 or more they count for a quarter of their weight, so passing adds little and failing costs the full weight. See Scoring versions and what changed.

What the findings mean

FindingSeverityWhat it means
No facility in the spatial structureProblemElements cannot be assigned to a building, bridge, road or other facility.
n buildings in one modelProblemSeparate buildings belong in separate models, unless they are part of an infrastructure asset.
n … facilities in one modelWarningSeveral facilities of one class usually point to a merged export.
n roads (railways, bridges, tunnels …) in one modelWarningUsually a file holds one facility, but several roads or bridges can be intended to be in one file. Just make sure this is intentional. Costs 10 points instead of 25.
n sites in one modelWarningLocation and georeferencing become ambiguous.
Facilities sit directly under the projectWarningNo IfcSite between the project and its facilities.
Buildings without storeysWarningElements in these buildings cannot be located by level.
Unrecognised facility classWarningThe class is not a facility type in the file's IFC version.
Levels or parts outside a facilityWarningStoreys or parts sit under the site or project with no facility in between.
Spatial elements outside the project treeWarningNot connected to the project, so most viewers will not show them in the tree.
Facilities without partsNoteThe elements sit in the facility as a whole. That is valid IFC: parts are optional and only help to find elements by section. Not scored.
No facility: the elements sit in the siteNoteA site-level model. Valid for landscape, terrain and other site works, which need no building, bridge or road. Not scored.
Generic IfcFacility used; Facility type not specifiedNoteInformation only, not scored.

The number of sites is scored by its own check, not as a warning.

Bridges, roads, railways and tunnels

The facility classes the report recognises depend on the IFC version. IFC 4.3 knows IfcFacility, IfcBuilding, IfcBridge, IfcRoad, IfcRailway and IfcMarineFacility. IFC2X3 and IFC4 know only IfcBuilding.

An IFC 4.3 bridge should therefore read IfcProject → IfcSite → IfcBridge → IfcBridgePart, with the elements contained in the parts or in the bridge itself. Parts are optional: a bridge without parts gets the note Facilities without parts and still scores 100 on hierarchy. A tunnel uses the generic IfcFacility, which the card notes as expected: IfcTunnel only arrives with IFC 4.4.

In IFC2X3 or IFC4, a bridge or road exported as an IfcBuilding with storeys passes these checks. When its elements hang directly under the site instead, the model has no facility. If it holds site content, such as terrain, earthworks or proxies, it is a site-level model and passes; if most of its elements are building parts, containment is capped at 20 and hierarchy and warnings score 20. On the Benchmark page, infrastructure inside an IfcBuilding is recognised from its elements, alignments, parts, authoring tool or names, and compared with civil infrastructure.

Capabilities that depend on it

CapabilitySpatial condition
Clean exportNo spatial structure warnings; One site
Coordination readyOne site; Containment ≥ 95%, with a facility present or as a site-level model
AI readyOne site, no duplicate GlobalIds
Operations / FM, Energy analysisSpaces present; Energy analysis also needs 2nd-level space boundaries (≥ 98% consistent) and materials ≥ 80%

A model with more than one site or more than three facilities counts as Federated / merged. See the Capabilities directory for every rule.

Other checks on the Structure page

Elements linked to a type scores the share of elements linked to a type object (IfcRelDefinesByType), weight 1.5 (key). Openings linked to doors & windows, for buildings, compares fill relationships with the number of doors and windows: 70 plus up to 30 for the share filled when void relationships exist, 20 when none exist, weight 0.75, not scored without doors or windows. Both link to the card How objects are connected. The buildingSMART result Implementer agreements is also listed here. Proxies have their own article: Proxies: when they are acceptable and how to make them say what they are. The checks on the spaces themselves, whether their volumes are closed, their areas plausible and their virtual boundaries clean, are in Spaces: closed volumes, room areas and virtual boundaries.

Frequently asked questions

Our IFC4 bridge uses storeys named after the deck and piers. Is that wrong?

The checks accept it, because IFC4 has no bridge class. Other software will read the asset as a building, though. For new projects, ask for IFC 4.3 with IfcBridge and bridge parts.

Why does the card say Looks federated?

The file holds more than one site, or several facilities of the same class, such as two buildings next to a road. That usually means models were merged at export. Several buildings without infrastructure show as Incomplete instead, because separate buildings belong in separate models. Split the file per asset, or merge the sites into one.

Several roads, railways, bridges or tunnels of one type show as Needs attention, not Looks federated. They can be intended to be in one file, so just check that they are.

Does the site also matter for location?

Yes. IfcSite is the root the location hangs from. See Georeferencing and the location map.