ifcopenshell.api.constraint.edit_metric#

Module Contents#

class ifcopenshell.api.constraint.edit_metric.Usecase(file, metric=None, attributes=None)#

Edit the attributes of a metric

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

Parameters
Returns

None

Return type

None

Example:

objective = ifcopenshell.api.run("constraint.add_objective", model)
metric = ifcopenshell.api.run("constraint.add_metric", model,
    objective=objective)
ifcopenshell.api.run("constraint.edit_metric", model,
    metric=metric, attributes={"ConstraintGrade": "HARD"})
execute(self)#