mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Update add_prop_template.py so the properties are sorted
This allows to keep the pset properties sorted for easy access
This commit is contained in:
@@ -110,5 +110,6 @@ def add_prop_template(
|
|||||||
)
|
)
|
||||||
has_property_templates = list(pset_template.HasPropertyTemplates or [])
|
has_property_templates = list(pset_template.HasPropertyTemplates or [])
|
||||||
has_property_templates.append(prop_template)
|
has_property_templates.append(prop_template)
|
||||||
|
has_property_templates.sort(key=lambda pt: pt.Name)
|
||||||
pset_template.HasPropertyTemplates = has_property_templates
|
pset_template.HasPropertyTemplates = has_property_templates
|
||||||
return prop_template
|
return prop_template
|
||||||
|
|||||||
Reference in New Issue
Block a user