ifcopenshell.api.cost.remove_cost_item_quantity

Module Contents

ifcopenshell.api.cost.remove_cost_item_quantity.remove_cost_item_quantity(file, cost_item=None, physical_quantity=None) 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:
Returns:

None

Return type:

None

Example:

schedule = ifcopenshell.api.run("cost.add_cost_schedule", model)
item = ifcopenshell.api.run("cost.add_cost_item", model, cost_schedule=schedule)
quantity = ifcopenshell.api.run("cost.add_cost_item_quantity", model,
    cost_item=item, ifc_class="IfcQuantityVolume")
# Let's change our mind and delete it
ifcopenshell.api.run("cost.remove_cost_item", model,
    cost_item=item, physical_quantity=quantity)