update unit_assignment

This commit is contained in:
krande
2023-12-16 13:47:18 +01:00
parent 8aecee5836
commit b11b3b7fa8
@@ -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