pub fn contain(
tx: &mut Transaction,
global_id: &str,
structure: EntityId,
elements: &[EntityId],
) -> SpatialAuthoringResult<EntityId>Expand description
Stage an IfcRelContainedInSpatialStructure.
The canonical containment writer (#492):
ifc_systems::contain_in_spatial_structure is a deprecated duplicate.
Note the slot inversion against IfcRelAggregates: here the
structure is slot 5 and the elements slot 4. Passing structure
as the parent keeps callers from having to know that.
IFC4 and IFC4X3 only: it writes their layout and leaves
OwnerHistory $, which IFC2X3 requires. In IFC2X3 use
contain_with_owner_history, which binds the model’s declared
release.
§Errors
Refuses a malformed GlobalId, an empty element list, and a structure listed among its own contents.