ifcopenshell.api.group.update_group_products

Module Contents

ifcopenshell.api.group.update_group_products.update_group_products(file, group=None, products=None) None

Sets a group products to be an explicit list of products

Any previous products assigned to that group will have their assignment removed.

Parameters:
Returns:

The IfcRelAssignsToGroup relationship

Return type:

ifcopenshell.entity_instance

Example:

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