From 0294c4e02ca42aa206340784858cd894b3dc4980 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 8 Jan 2023 12:58:53 +1100 Subject: [PATCH] Fix #2678. Critical typo bug meant that units were fixed to metric millimeters. --- src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py b/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py index 1fcad6e839..632167d2e8 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py +++ b/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py @@ -60,7 +60,7 @@ class Usecase: """ self.file = file self.settings = { - "units": None, + "units": units, "length": {"is_metric": True, "raw": "MILLIMETERS"}, "area": {"is_metric": True, "raw": "METERS"}, "volume": {"is_metric": True, "raw": "METERS"},