ifcopenshell.api.pset.remove_pset#

Module Contents#

class ifcopenshell.api.pset.remove_pset.Usecase(file, product=None, pset=None)#

Removes a property set from a product

All properties that are part of this property set are also removed.

Parameters
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)
execute(self)#