ifcopenshell.api.pset_template.edit_pset_template
#
Module Contents#
- class ifcopenshell.api.pset_template.edit_pset_template.Usecase(file, pset_template=None, attributes=None)#
Edits the attributes of an IfcPropertySetTemplate
For more information about the attributes and data types of an IfcPropertySetTemplate, consult the IFC documentation.
- Parameters
pset_template (ifcopenshell.entity_instance.entity_instance) – The IfcPropertySetTemplate entity you want to edit
attributes (dict, optional) – a dictionary of attribute names and values.
- Returns
None
- Return type
None
Example:
# Whoops! We named it with a buildingSMART reserved "Pset_" prefix! template = ifcopenshell.api.run("pset_template.add_pset_template", model, name="Pset_RiskFactors") # Let's fix it to prefix with our company code instead. ifcopenshell.api.run("pset_template.edit_pset_template", model, pset_template=template, attributes={"Name": "ABC_RiskFactors"})
- execute(self)#