ifcopenshell.api.cost.remove_cost_value#

Module Contents#

class ifcopenshell.api.cost.remove_cost_value.Usecase(file, parent=None, cost_value=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
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)

# This cost item will have a unit cost of 5 and a volume of 3
value = ifcopenshell.api.run("cost.add_cost_value", model, parent=item)
ifcopenshell.api.run("cost.edit_cost_value", model, cost_value=value,
    attributes={"AppliedValue": 5.0})

ifcopenshell.api.run("cost.remove_cost_value", model, parent=item, cost_value=value)
execute(self)#