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

Cannot export to IFC #1

Closed
ju1m opened this issue Apr 10, 2021 · 1 comment
Closed

Cannot export to IFC #1

ju1m opened this issue Apr 10, 2021 · 1 comment

Comments

@ju1m
Copy link

ju1m commented Apr 10, 2021

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).

@Moult
Copy link
Owner

Moult commented Apr 11, 2021

Hey there! This demo is old and the add-on has been completely rewritten from scratch since then, which is why it doesn't work.

@Moult Moult closed this as completed Apr 11, 2021
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