ifcopenshell.api.cost.edit_cost_value

Module Contents

ifcopenshell.api.cost.edit_cost_value.edit_cost_value(file, cost_value=None, attributes=None) 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, 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)

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