ifcopenshell.api.cost.edit_cost_item
¶
Module Contents¶
- ifcopenshell.api.cost.edit_cost_item.edit_cost_item(file: ifcopenshell.file, cost_item: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – a dictionary of attribute names and values.
- 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.edit_cost_item(model, cost_item=item, attributes={"Name": "Foo"})