Skip to main content

create_spatial_element

Function create_spatial_element 

Source
pub fn create_spatial_element(
    tx: &mut Transaction,
    kind: SpatialKind,
    global_id: &str,
    draft: SpatialDraft<'_>,
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage a spatial container.

IfcSite, IfcBuilding, IfcBuildingStorey and IfcSpace share the IfcSpatialStructureElement prefix, so one staging path serves all four and cannot drift between them.

ยงErrors

Refuses a malformed GlobalId. IfcRoot.GlobalId is required and is how every relationship names this container.