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
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)#