ifcopenshell.api.constraint.unassign_constraint

Module Contents

class ifcopenshell.api.constraint.unassign_constraint.Usecase
execute()
get_constraint_rels() list[ifcopenshell.entity_instance]
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 (list[ifcopenshell.entity_instance]) – The list of products the constraint applies to.

  • constraint (ifcopenshell.entity_instance) – The IfcObjective constraint

Returns:

None

Return type:

None