Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open IFC Test file in the latest build of BlenderBIM #1

Open
EloyRD opened this issue Jan 5, 2022 · 1 comment
Open

Unable to open IFC Test file in the latest build of BlenderBIM #1

EloyRD opened this issue Jan 5, 2022 · 1 comment

Comments

@EloyRD
Copy link

EloyRD commented Jan 5, 2022

Hi, while trying to follow your tutorial I got this error.
I am able to use another file without issues.

The error description in BlenderBIM is as follows.

`
Python: Traceback (most recent call last):
File "C:\Users\Nutzer 1\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\blenderbim\bim\module\project\operator.py", line 557, in execute
bpy.ops.bim.load_project_elements()
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\modules\bpy\ops.py", line 132, in call
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Python: Traceback (most recent call last):
File "C:\Users\Nutzer 1\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\blenderbim\bim\module\project\operator.py", line 608, in execute
ifc_importer.execute()
File "C:\Users\Nutzer 1\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\blenderbim\bim\import_ifc.py", line 202, in execute
self.calculate_unit_scale()
File "C:\Users\Nutzer 1\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\blenderbim\bim\import_ifc.py", line 1079, in calculate_unit_scale
self.unit_scale = ifcopenshell.util.unit.calculate_unit_scale(self.file)
File "C:\Users\Nutzer 1\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\util\unit.py", line 435, in calculate_unit_scale
units = file.by_type("IfcUnitAssignment")[0]
AttributeError: 'NoneType' object has no attribute 'by_type'

location: C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\modules\bpy\ops.py:132

location: :-1

`

@vulevukusej
Copy link

@EloyRD are you sure you didn't mean to post this issue here: https://github.com/IfcOpenShell/IfcOpenShell/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants