ifcopenshell.api.pset_template.edit_prop_template#

Module Contents#

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

Edits the attributes of an IfcSimplePropertyTemplate

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

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