Skip to main content

assign_to_group_by_factor

Function assign_to_group_by_factor 

Source
pub fn assign_to_group_by_factor(
    tx: &mut Transaction,
    global_id: &str,
    group: EntityId,
    members: &[EntityId],
    factor: f64,
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelAssignsToGroupByFactor.

The factor is an IfcRatioMeasure at slot 7, scaling each member’s contribution to the group.

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

§Errors

Refuses a malformed GlobalId, an empty member set, the group listed among its own members, and a non-finite factor.