ifcopenshell.api.cost.remove_cost_value
¶
Module Contents¶
- ifcopenshell.api.cost.remove_cost_value.remove_cost_value(file: ifcopenshell.file, parent: ifcopenshell.entity_instance, cost_value: ifcopenshell.entity_instance) None ¶
Removes a cost value
The cost value may be assigned either to a cost item, a construction resource, or another cost value (i.e. it is a subcomponent of a cost)
- Parameters:
parent (ifcopenshell.entity_instance) – The IfcCostItem, IfcConstructionResource, or IfcCostValue that the IfcCostValue is assigned to.
cost_value – The IfcCostValue that you want 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) # 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}) ifcopenshell.api.cost.remove_cost_value(model, parent=item, cost_value=value)