ifcopenshell.api.pset_template.edit_prop_template

Module Contents

ifcopenshell.api.pset_template.edit_prop_template.edit_prop_template(file, prop_template=None, attributes=None) None

Edits the attributes of an IfcSimplePropertyTemplate

For more information about the attributes and data types of an IfcSimplePropertyTemplate, consult the IFC documentation.

Parameters:
  • prop_template (ifcopenshell.entity_instance) – The IfcSimplePropertyTemplate entity you want to edit

  • attributes (dict, optional) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

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

# Here's a property with just default values.
prop = ifcopenshell.api.run("pset_template.add_prop_template", model, pset_template=template)

# Let's edit it to give the actual values we need.
ifcopenshell.api.run("pset_template.edit_prop_template", model,
    prop_template=prop, attributes={"Name": "DemoA", "PrimaryMeasureType": "IfcLengthMeasure"})