Skip to main content

contain_in_spatial_structure

Function contain_in_spatial_structure 

Source
pub fn contain_in_spatial_structure(
    tx: &mut Transaction,
    global_id: &str,
    structure: EntityId,
    elements: &[EntityId],
) -> SystemAuthoringResult<EntityId>
๐Ÿ‘ŽDeprecated since 0.5.0:

use ifc_spatial::contain, the canonical IfcRelContainedInSpatialStructure writer (#492)

Expand description

Stage an IfcRelContainedInSpatialStructure.

Deprecated (#492): ifc_spatial::contain is the canonical writer of this relationship, with the same rules and layout. This one stays, with its own error type, for compatibility.

Containment is exclusive: an element belongs to exactly one structure. Use reference_in_spatial_structure for the non-exclusive case, such as a duct crossing several storeys.

Writes OwnerHistory $, so the record is IFC4/IFC4X3 only; use contain_in_spatial_structure_with_owner_history for IFC2X3.

ยงErrors

Refuses a malformed GlobalId, an empty element list, and the structure listed among its own contents.