Skip to main content

add_quantity_to_set

Function add_quantity_to_set 

Source
pub fn add_quantity_to_set(
    tx: &mut Transaction,
    model: &Model,
    set: EntityId,
    quantities: &[EntityId],
) -> Result<(), PropertyError>
Expand description

Stage adding a quantity to an existing IfcElementQuantity.

Reads the set’s current contents and writes back the extended list, so this is a read-modify-write against the model as it stands. Two calls adding to the same set in one transaction would each be computed from the same starting list and the second would win – add both in one call instead.

§Errors

PropertyError::MissingEntity if the set is absent, and PropertyError::NotAQuantitySet if it is not an IfcElementQuantity.