ifcopenshell.api.cost.remove_cost_item_quantity
¶
Module Contents¶
- ifcopenshell.api.cost.remove_cost_item_quantity.remove_cost_item_quantity(file: ifcopenshell.file, cost_item: ifcopenshell.entity_instance, physical_quantity: ifcopenshell.entity_instance) None ¶
Removes a quantity assigned to a cost item
If the quantity is part of a product (e.g. wall), then the quantity will still exist and merely the relationship to the cost item will be removed.
- Parameters:
cost_item (ifcopenshell.entity_instance) – The IfcCostItem that the quantity is assigned to
physical_quantity (ifcopenshell.entity_instance) – The IfcPhysicalQuantity to remove
- 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) quantity = ifcopenshell.api.cost.add_cost_item_quantity(model, cost_item=item, ifc_class="IfcQuantityVolume") # Let's change our mind and delete it ifcopenshell.api.cost.remove_cost_item(model, cost_item=item, physical_quantity=quantity)