ifcopenshell.api.constraint.edit_objective

Module Contents

ifcopenshell.api.constraint.edit_objective.edit_objective(file: ifcopenshell.file, objective: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

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