Skip to main content

assign_to_product

Function assign_to_product 

Source
pub fn assign_to_product(
    tx: &mut Transaction,
    global_id: &str,
    product: EntityId,
    objects: &[EntityId],
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelAssignsToProduct: objects assigned to a product.

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

§Errors

Refuses a malformed GlobalId, an empty object set, and the product listed among the objects assigned to it.