ifcopenshell.api.pset_template.remove_pset_template#

Module Contents#

class ifcopenshell.api.pset_template.remove_pset_template.Usecase(file, pset_template=None)#

Removes a property set template

All property templates within the property set template are also removed along with it.

Parameters

pset_template (ifcopenshell.entity_instance.entity_instance) – The IfcPropertySetTemplate to remove.

Returns

None

Return type

None

Example:

# Create a template.
template = ifcopenshell.api.run("pset_template.add_pset_template", model, name="ABC_RiskFactors")

# Let's remove the template.
ifcopenshell.api.run("pset_template.remove_pset_template", model, pset_template=template)
execute(self)#