ifcopenshell.api.pset_template.edit_prop_template
¶
Module Contents¶
- ifcopenshell.api.pset_template.edit_prop_template.edit_prop_template(file: ifcopenshell.file, prop_template: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
template = ifcopenshell.api.pset_template.add_pset_template(model, name="ABC_RiskFactors") # Here's a property with just default values. prop = ifcopenshell.api.pset_template.add_prop_template(model, pset_template=template) # Let's edit it to give the actual values we need. ifcopenshell.api.pset_template.edit_prop_template(model, prop_template=prop, attributes={"Name": "DemoA", "PrimaryMeasureType": "IfcLengthMeasure"})