Hi, thanks for this demo!
Using Blender 2.92 and blender28-bim-210404-py37-linux.zip I tried to File -> Export -> IFC but got:
Read blend: /home/julm/work/perso/blender/blenderbim-demo-house/house.blend
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
WARN (bke.data_transfer): source/blender/blenkernel/intern/font.c:288 vfont_get_data: Font file doesn't exist: /home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
WARN (bke.data_transfer): source/blender/blenkernel/intern/font.c:288 vfont_get_data: Font file doesn't exist: /home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
WARN (bke.data_transfer): source/blender/blenkernel/intern/font.c:288 vfont_get_data: Font file doesn't exist: /home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf
Error: Unable to pack file, source path '/home/julm/work/perso/blender/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
Error: Unable to pack file, source path '/home/julm/work/perso/blender/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
WARN (bke.data_transfer): source/blender/blenkernel/intern/font.c:288 vfont_get_data: Font file doesn't exist: //../.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
Error: Unable to pack file, source path '/home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf' not found
WARN (bke.data_transfer): source/blender/blenkernel/intern/font.c:288 vfont_get_data: Font file doesn't exist: /home/dion/.config/blender/2.90/scripts/addons/blenderbim/bim/data/fonts/OpenGost Type B TT.ttf
Python: Traceback (most recent call last):
File "/home/julm/.config/blender/2.92/scripts/addons/blenderbim/bim/operator.py", line 99, in execute
ifc_exporter.export()
File "/home/julm/.config/blender/2.92/scripts/addons/blenderbim/bim/export_ifc.py", line 21, in export
self.set_header()
File "/home/julm/.config/blender/2.92/scripts/addons/blenderbim/bim/export_ifc.py", line 55, in set_header
self.file.wrapped_data.header.file_name.name = os.path.basename(self.ifc_export_settings.output_file)
AttributeError: 'NoneType' object has no attribute 'wrapped_data'
Apparently self.file is None. I've tried to find a way to set it to something as I guess it is set from bpy.context.scene.BIMProperties.ifc_file but the best I've found so far is to IFC Project -> Create project and then I can set IFC Filename to a dummy IFC file, and then exporting works (though I don't know if it exports the right data).
Hi, thanks for this demo! Using Blender 2.92 and
blender28-bim-210404-py37-linux.zip
I tried toFile -> Export -> IFC
but got:Apparently
self.file
isNone
. I've tried to find a way to set it to something as I guess it is set frombpy.context.scene.BIMProperties.ifc_file
but the best I've found so far is toIFC Project -> Create project
and then I can setIFC Filename
to a dummy IFC file, and then exporting works (though I don't know if it exports the right data).