ifcopenshell.api.group.unassign_group
#
Module Contents#
- class ifcopenshell.api.group.unassign_group.Usecase(file, product=None, group=None)#
Unassigns a product from a group
If the product isn’t assigned to the group, nothing will happen.
- Parameters
product (ifcopenshell.entity_instance.entity_instance) – A IfcProduct element to unassign from the group
group (ifcopenshell.entity_instance.entity_instance) – The IfcGroup to unassign from
- 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, product=bad_furniture, group=group)
- execute(self)#