Modeling dimensions now have sensible defaults depending on units and show prior to element creation

This commit is contained in:
Dion Moult
2022-10-15 11:06:09 +11:00
parent 28aab490df
commit b90ab70658
9 changed files with 227 additions and 122 deletions
@@ -477,6 +477,8 @@ def calculate_unit_scale(file):
:returns: The scale factor
:rtype: float
"""
if not file.by_type("IfcUnitAssignment"):
return 1
units = file.by_type("IfcUnitAssignment")[0]
unit_scale = 1
for unit in units.Units: