Issues importing IFC files to BlenderBIM

I'm getting the following error message with several IFC 4 files imported from Gemeni (terrain models : Gemini seems to be using the DDS engine when exporting and it might be a problem with the export itself. :
Traceback (most recent call last):
File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 88, in execute
File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 291, in execute
File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 510, in create_georeferencing
scene.TargetCRS.vertical_datum = projected_crs.VerticalDatum
TypeError: bpy_struct: item.attr = val: TargetCRS.vertical_datum doesn't support None from string types
location: :-1
There are so many programs producing IFC files these days with variable quality. It would be great if these files could still be imported to BlenderBIM for manual improvement and validation.
I've shared the file on Firefox send. Thanks for any help.


  • It is a bug with the BlenderBIM Add-on. Thank you so much for reporting!

    • I was incorrectly casting data types for georeferencing data
    • The file is absolutely positioned, instead of using IFC4 map conversions. Blender does not work with absolute positions, as it is a 3D modeler, not a GIS platform, so it should perform an offset (which needs to be more visibly logged to the user, I have to admit... it's on the to-do list!). This offset feature didn't take into account the coordinate lists used by triangulated geometries, so I've now added this feature.

    Fix here:

    If you want the fix now, you can replace your with this in your BlenderBIM Add-on's directory (C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\

  • BlenderGIS and dxf import implements the offset as scene property, maybe we should stick to same variables so they all remains compatibles out of the box

  • @stephen_l correct - integrating IFC geolocation offsets with the BlenderGIS/DXF import variables is on the to-do list.

  • edited June 29

    Thanks! My goal was indeed to use BlenderBIM to convert from absolute to local coordinates/place the site correctly. The file now imports nicely but I get an error when I attempt to export back to IFC. :

    Traceback (most recent call last): File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 69, in execute ifc_exporter.export(context.selected_objects) File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 1169, in export self.create_map_conversion() File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 1561, in create_map_conversion self.create_target_crs() File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\bim\", line 1575, in create_target_crs SIUnitHelper.get_unit_name(self.ifc_parser.target_crs['attributes']['MapUnit']) File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\", line 88, in create_entity e[idx] = arg File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\", line 127, in __setitem__ self.wrapped_data.setArgumentAsNull(idx) File "C:\Users\lb\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\", line 1584, in setArgumentAsNull return _ifcopenshell_wrapper.entity_instance_setArgumentAsNull(self, i) RuntimeError: Attribute not set location: <unknown location>:-1

    I also made an attempt to use the IfcPatch tool ( to do the patching but ended up with half of the IfcCartesianPoints patched and the other half still stuck in absolute coordinates. (same file) :-) I'm investigating on my side but dealing with IFC from GIS tools is a new area for me

  • @Lars the IfcPatch tool is probably the best way to go if you want to be very careful about preserving data as much as possible. I forgot to update the IfcPatch recipe with the fix (right now there is some duplicate code which I need to share to reduce maintenance in the future). Fixed here:

    I also fixed the georeferencing export bug, which previously assumed that you should fill out the map unit, which is actually optional, fixed here:

    Hope it helps :) Your testing is incredibly valuable!

Sign In or Register to comment.