ifcopenshell.api.constraint.unassign_constraint

Module Contents

class ifcopenshell.api.constraint.unassign_constraint.Usecase
execute(products_: list[ifcopenshell.entity_instance], constraint: ifcopenshell.entity_instance)
get_constraint_rels(cosntraint: ifcopenshell.entity_instance) list[ifcopenshell.entity_instance]
file: ifcopenshell.file
ifcopenshell.api.constraint.unassign_constraint.unassign_constraint(file: ifcopenshell.file, products: list[ifcopenshell.entity_instance], constraint: ifcopenshell.entity_instance) None

Unassigns a constraint from a list of products

The constraint will not be deleted and is available to be assigned to other products.

Parameters:
  • products – The list of products the constraint applies to.

  • constraint – The IfcObjective constraint

Returns:

None