ifcopenshell.api.cost.remove_cost_item
¶
Module Contents¶
- ifcopenshell.api.cost.remove_cost_item.remove_cost_item(file, cost_item=None) 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.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)