ifcopenshell.api.constraint.edit_objective

Module Contents

ifcopenshell.api.constraint.edit_objective.edit_objective(file, objective=None, attributes=None) None

Edit the attributes of a objective

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

Parameters:
  • objective (ifcopenshell.entity_instance) – The IfcObjective you want to edit.

  • attributes (dict, optional) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

objective = ifcopenshell.api.run("constraint.add_objective", model)
ifcopenshell.api.run("constraint.edit_objective", model,
    objective=objective, attributes={"ConstraintGrade": "HARD"})