ifcopenshell.api.cost.edit_cost_item_quantity
¶
Module Contents¶
- ifcopenshell.api.cost.edit_cost_item_quantity.edit_cost_item_quantity(file: ifcopenshell.file, physical_quantity: ifcopenshell.entity_instance, attributes: dict[str, Any]) None ¶
Edits the attributes of an IfcPhysicalQuantity
For more information about the attributes and data types of an IfcPhysicalQuantity, consult the IFC documentation.
- Parameters:
physical_quantity (ifcopenshell.entity_instance) – The IfcPhysicalQuantity entity you want to edit
attributes (dict) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
schedule = ifcopenshell.api.cost.add_cost_schedule(model) item = ifcopenshell.api.cost.add_cost_item(model, cost_schedule=schedule) # This cost item will have a unit cost of 5 and a volume of 3 value = ifcopenshell.api.cost.add_cost_value(model, parent=item) ifcopenshell.api.cost.edit_cost_value(model, cost_value=value, attributes={"AppliedValue": 5.0}) quantity = ifcopenshell.api.cost.add_cost_item_quantity(model, cost_item=item, ifc_class="IfcQuantityVolume") ifcopenshell.api.cost.edit_cost_item_quantity(model, physical_quantity=quantity, "attributes": {"VolumeValue": 3.0})