pub fn assign_to_resource(
tx: &mut Transaction,
global_id: &str,
resource: EntityId,
objects: &[EntityId],
) -> SpatialAuthoringResult<EntityId>Expand description
Stage an IfcRelAssignsToResource: objects assigned to a resource.
IFC4 and IFC4X3 only: it writes their layout and leaves
OwnerHistory $, which IFC2X3 requires. In IFC2X3 use
assign_to_resource_with_owner_history, which binds the model’s declared
release.
§Errors
Refuses a malformed GlobalId, an empty object set, and the resource
listed among its own objects, which NoSelfReference forbids.