mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
update name of function to make its purpose more clear
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user