Skip to main content

create_space_boundary

Function create_space_boundary 

Source
pub fn create_space_boundary(
    tx: &mut Transaction,
    model: &Model,
    level: BoundaryLevel,
    global_id: &str,
    draft: BoundaryDraft<'_>,
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelSpaceBoundary at the requested level, in the model’s declared release, with OwnerHistory unset.

The record is laid out by attribute name from the release’s table. IFC4 and IFC4X3 allow the unset OwnerHistory; IFC2X3 requires it, so an IFC2X3 model is refused with AuthoringRequired: use create_space_boundary_with_owner_history there.

§Errors

Refuses a malformed GlobalId, an unknown enum token, a parent or corresponding reference on a level that does not declare the slot, and a physical/virtual flag that contradicts the bounding element (CorrectPhysOrVirt). Against the release: a header binding no single known release (MultipleSchemas, UnsupportedSchema), a level it does not declare (EntityNotInSchema: IFC2X3 has no 1st or 2nd level), a token it does not declare (AuthoringValueType), and the IFC2X3 OwnerHistory (AuthoringRequired). Nothing is staged on an error.