diff --git a/src/ifcopenshell-python/ifcopenshell/util/unit.py b/src/ifcopenshell-python/ifcopenshell/util/unit.py index 1d770a06df..0d49c2f654 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/unit.py +++ b/src/ifcopenshell-python/ifcopenshell/util/unit.py @@ -649,7 +649,7 @@ def get_base_type_name( return None -def convert_file_units(ifc_file: ifcopenshell.file, target_units: str) -> ifcopenshell.file: +def convert_file_length_units(ifc_file: ifcopenshell.file, target_units: str) -> ifcopenshell.file: """Converts all units in an IFC file to the specified target units. Returns a new file.""" prefix = "MILLI" if target_units == "MILLIMETERS" else None diff --git a/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py b/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py index 4aa8ee45a4..48da1e1b37 100644 --- a/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py +++ b/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py @@ -51,4 +51,4 @@ class Patcher: self.file_patched: ifcopenshell.file = None def patch(self): - self.file_patched = ifcopenshell.util.unit.convert_file_units(self.file, self.unit) + self.file_patched = ifcopenshell.util.unit.convert_file_length_units(self.file, self.unit)