mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Modeling dimensions now have sensible defaults depending on units and show prior to element creation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user