Skip to main content

add_element_quantity

Function add_element_quantity 

Source
pub fn add_element_quantity(
    tx: &mut Transaction,
    global_id: &str,
    name: &str,
    method_of_measurement: Option<&str>,
    quantities: &[EntityId],
) -> PropertyResult<EntityId>
Expand description

Stage an IfcElementQuantity.

The quantity-takeoff counterpart of a property set: a named group of measured quantities attached to an object through attach_property_set, which accepts any IfcPropertySetDefinition.

§Release

OwnerHistory is left $, which IFC4 and IFC4X3 allow and IFC2X3 forbids. This function takes no model, so it cannot refuse an IFC2X3 one; there use add_element_quantity_with_owner_history.

§Errors

Refuses a malformed GUID and an empty quantity list, which the schema types as SET [1:?].