From b11b3b7fa8e804e74e98a8874a673b606d5c01fa Mon Sep 17 00:00:00 2001 From: krande Date: Sat, 16 Dec 2023 13:47:18 +0100 Subject: [PATCH] update unit_assignment --- src/ifcopenshell-python/ifcopenshell/util/unit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcopenshell-python/ifcopenshell/util/unit.py b/src/ifcopenshell-python/ifcopenshell/util/unit.py index 300f3a0501..1d770a06df 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/unit.py +++ b/src/ifcopenshell-python/ifcopenshell/util/unit.py @@ -695,6 +695,7 @@ def convert_file_units(ifc_file: ifcopenshell.file, target_units: str) -> ifcope setattr(element, attr.name(), new_el) file_patched.remove(old_length) + unit_assignment.Units = tuple([new_length, *unit_assignment.Units]) if ifc_file.schema == "IFC2X3": ifcopenshell.api.owner.settings.get_user = old_get_user