This commit is contained in:
Andrej730
2025-04-18 11:53:23 +05:00
parent a030b84fc5
commit ff90396bcf
2 changed files with 43 additions and 27 deletions
@@ -624,7 +624,7 @@ def get_symbol_quantity_class(symbol: Optional[str] = None) -> QUANTITY_CLASS:
def get_unit_symbol(unit: ifcopenshell.entity_instance) -> str:
symbol = ""
symbol: str = ""
if unit.is_a("IfcSIUnit"):
symbol += prefix_symbols.get(unit.Prefix, "")
symbol += unit_symbols.get(unit.Name.replace("METER", "METRE"), "?")