mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix displaying undefined or userdefined units in cost schedules
This commit is contained in:
@@ -464,6 +464,8 @@ def get_unit_symbol(unit):
|
||||
if unit.is_a("IfcSIUnit"):
|
||||
symbol += prefix_symbols.get(unit.Prefix, "")
|
||||
symbol += unit_symbols.get(unit.Name.replace("METER", "METRE"), "?")
|
||||
if unit.is_a("IfcContextDependentUnit") and unit.UnitType == "USERDEFINED":
|
||||
symbol = unit.Name
|
||||
return symbol
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user