mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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.append(prop_template)
|
||||
has_property_templates.sort(key=lambda pt: pt.Name)
|
||||
pset_template.HasPropertyTemplates = has_property_templates
|
||||
return prop_template
|
||||
|
||||
Reference in New Issue
Block a user