ifcopenshell.api.pset.remove_pset

Module Contents

ifcopenshell.api.pset.remove_pset.remove_pset(file: ifcopenshell.file, product: ifcopenshell.entity_instance, pset: ifcopenshell.entity_instance) 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.root.create_entity(model, ifc_class="IfcWallType")
pset = ifcopenshell.api.pset.add_pset(model, product=wall_type, name="Pset_WallCommon")

# Remove it!
ifcopenshell.api.pset.remove_pset(model, product=wall_type, pset=pset)