ifcopenshell.api.cost.remove_cost_item_quantity
#
Module Contents#
- class ifcopenshell.api.cost.remove_cost_item_quantity.Usecase(file, cost_item=None, physical_quantity=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.entity_instance) – The IfcCostItem that the quantity is assigned to
physical_quantity (ifcopenshell.entity_instance.entity_instance) – The IfcPhysicalQuantity to remove
- 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)
- execute(self)#