ifcopenshell.api.constraint.remove_metric#

Module Contents#

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

Remove a metric benchmark

Removes a metric benchmark and all of its associations to any products and objectives.

Parameters

metric (ifcopenshell.entity_instance.entity_instance) – The IfcMetric you want to remove.

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.remove_metric", model,
    metric=metric)
delete_reference(self, reference)#
execute(self)#