ifcopenshell.api.cost.edit_cost_item
¶
Module Contents¶
- ifcopenshell.api.cost.edit_cost_item.edit_cost_item(file, cost_item=None, attributes=None) None ¶
Edits the attributes of an IfcCostItem
For more information about the attributes and data types of an IfcCostItem, consult the IFC documentation.
- Parameters:
cost_item (ifcopenshell.entity_instance) – The IfcCostItem entity you want to edit
attributes (dict, optional) – a dictionary of attribute names and values.
- 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.edit_cost_item", model, cost_item=item, attributes={"Name": "Foo"})