ifcopenshell.api.group.unassign_group

Module Contents

ifcopenshell.api.group.unassign_group.unassign_group(file: ifcopenshell.file, products: list[ifcopenshell.entity_instance], group: ifcopenshell.entity_instance) None

Unassigns products from a group

If the product isn’t assigned to the group, nothing will happen.

Parameters:
Returns:

None

Return type:

None

Example:

group = ifcopenshell.api.run("group.add_group", model, Name="Furniture")
furniture = model.by_type("IfcFurniture")
ifcopenshell.api.run("group.assign_group", model, products=furniture, group=group)

bad_furniture = furniture[0]
ifcopenshell.api.run("group.unassign_group", model, products=[bad_furniture], group=group)