diff --git a/src/ifcblenderexport/blenderbim/bim/import_ifc.py b/src/ifcblenderexport/blenderbim/bim/import_ifc.py index 4d23ee2d4a..de77317bbc 100644 --- a/src/ifcblenderexport/blenderbim/bim/import_ifc.py +++ b/src/ifcblenderexport/blenderbim/bim/import_ifc.py @@ -773,7 +773,7 @@ class IfcImporter(): def set_units(self): units = self.file.by_type('IfcUnitAssignment')[0] for unit in units.Units: - if unit.UnitType == 'LENGTHUNIT': + if unit.is_a('IfcNamedUnit') and unit.UnitType == 'LENGTHUNIT': if unit.is_a('IfcSIUnit'): bpy.context.scene.unit_settings.system = 'METRIC' if unit.Name == 'METRE':