ifcopenshell.api.cost.edit_cost_value_formula#

Module Contents#

class ifcopenshell.api.cost.edit_cost_value_formula.Usecase(file, cost_value=None, formula=None)#

Sets a cost value based on a formula, similar to formulas in spreadsheets

Costs may be made up of many components (e.g. labour, material, waste factor, taxes, etc). This can be easily represented in the form of a formula similar thta would be used in spreadsheet applications.

For more information, see ifcopenshell.util.cost

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)

value = ifcopenshell.api.run("cost.add_cost_value", model, parent=item)
ifcopenshell.api.run("cost.edit_cost_value_formula", model, cost_value=value,
    formula="5000 * 1.19")
edit_cost_value(self, data, parent=None)#
execute(self)#