ifcopenshell.api.cost.remove_cost_item

Module Contents

ifcopenshell.api.cost.remove_cost_item.remove_cost_item(file: ifcopenshell.file, cost_item: ifcopenshell.entity_instance) 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) – The IfcCostItem entity 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)
ifcopenshell.api.cost.remove_cost_item(model, cost_item=item)