Skip to main content

create_external_spatial_element

Function create_external_spatial_element 

Source
pub fn create_external_spatial_element(
    tx: &mut Transaction,
    global_id: &str,
    draft: ExternalSpatialDraft<'_>,
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcExternalSpatialElement.

IFC4 and IFC4X3 only: it writes their layout and leaves OwnerHistory $, which IFC2X3 requires. In IFC2X3 use create_external_spatial_element_with_owner_history, which binds the model’s declared release.

§Errors

Refuses a malformed GlobalId, a token outside IfcExternalSpatialElementTypeEnum, and USERDEFINED without ObjectType.