ifcopenshell.api.cost.edit_cost_value#

Module Contents#

class ifcopenshell.api.cost.edit_cost_value.Usecase(file, cost_value=None, attributes=None)#

Edits the attributes of an IfcCostValue

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

Parameters
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})
execute(self)#