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:
products (list[ifcopenshell.entity_instance]) – A list of IfcProduct elements to unassign from the group
group (ifcopenshell.entity_instance) – The IfcGroup to unassign from
- Returns:
None
- Return type:
None
Example:
group = ifcopenshell.api.group.add_group(model, name="Furniture") furniture = model.by_type("IfcFurniture") ifcopenshell.api.group.assign_group(model, products=furniture, group=group) bad_furniture = furniture[0] ifcopenshell.api.group.unassign_group(model, products=[bad_furniture], group=group)