mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
Improve formatting for imperial units for the elevation of spatial elements elevation in the spatial decomposition panel (Re #7373)
This commit is contained in:
@@ -292,7 +292,7 @@ class Unit(bonsai.core.tool.Unit):
|
|||||||
return f'{inches:.4g}"'
|
return f'{inches:.4g}"'
|
||||||
# Show both feet and inches
|
# Show both feet and inches
|
||||||
else:
|
else:
|
||||||
return f"{feet}'{inches:.4g}\""
|
return f"{feet}' - {inches:.4g}\""
|
||||||
else:
|
else:
|
||||||
# Use metric - choose appropriate unit
|
# Use metric - choose appropriate unit
|
||||||
if abs(meters) >= 1.0:
|
if abs(meters) >= 1.0:
|
||||||
|
|||||||
Reference in New Issue
Block a user