ifcopenshell.api.pset.remove_pset
¶
Module Contents¶
- ifcopenshell.api.pset.remove_pset.remove_pset(file, product=None, pset=None) None ¶
Removes a property set from a product
All properties that are part of this property set are also removed.
- Parameters:
product (ifcopenshell.entity_instance) – The IfcObject to remove the property set from.
pset (ifcopenshell.entity_instance) – The IfcPropertySet or IfcElementQuantity to remove.
- Returns:
None
- Return type:
None
Example:
# Let's imagine we have a new wall type with a property set. wall_type = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcWallType") pset = ifcopenshell.api.run("pset.add_pset", model, product=wall_type, name="Pset_WallCommon") # Remove it! ifcopenshell.api.run("pset.remove_pset", model, product=wall_type, pset=pset)