ifcopenshell.api.cost.remove_cost_item#

Module Contents#

class ifcopenshell.api.cost.remove_cost_item.Usecase(file, cost_item=None)#

Removes a cost item

All associated relationships with the cost item are also removed, however the related resources, products, and tasks themselves are retained.

Parameters

cost_item (ifcopenshell.entity_instance.entity_instance) – The IfcCostItem entity you want 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)
ifcopenshell.api.run("cost.remove_cost_item", model, cost_item=item)
execute(self)#