ifcopenshell.api.cost.edit_cost_value

Module Contents

ifcopenshell.api.cost.edit_cost_value.edit_cost_value(file: ifcopenshell.file, cost_value: ifcopenshell.entity_instance, attributes: dict[str, Any]) None

Edits the attributes of an IfcCostValue

For more information about the attributes and data types of an IfcCostValue, consult the IFC documentation.

Parameters:
  • cost_value (ifcopenshell.entity_instance) – The IfcCostValue 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)

# This cost item will have a total cost of 42
value = ifcopenshell.api.cost.add_cost_value(model, parent=item)
ifcopenshell.api.cost.edit_cost_value(model, cost_value=value,
    attributes={"AppliedValue": 42.0})