ifcopenshell.api.pset_template.edit_pset_template

Module Contents

ifcopenshell.api.pset_template.edit_pset_template.edit_pset_template(file: ifcopenshell.file, pset_template: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – The IfcPropertySetTemplate entity you want to edit

  • attributes (dict) – 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.pset_template.add_pset_template(model, name="Pset_RiskFactors")

# Let's fix it to prefix with our company code instead.
ifcopenshell.api.pset_template.edit_pset_template(model,
    pset_template=template, attributes={"Name": "ABC_RiskFactors"})