BBIM | IFC Model no longer available in BlenderBim

this is not the first time it happens to me, I cannot load the attached IFC model in BBIM (it shows nothing) , but I can open the same in BIMVision ->

I wonder what might have caused it

I tried to open it with a 3.6 version of Blender but it doesn' load there either, nor can I use the local git to load previous versions, quite frustrating, hopefully I can get it back somehow
I am currently using Blender 4.0.2 + 0.0.240110
thanks in advance for your help

Comments

  • edited February 2

    UPDATE

    I can open the model if I use 231104 BBIM version in 3.6 Blender, really weird stuff..
    I saved a .blend file with it that can open in 4.0.2 + 0.0.240202 but when I save it as .ifc the problem is still there (doesn't load it), I think I need a witch doctor

  • It does not open for me either. Here's the console output on my side.
    I also have a problem 'opening' a file as well, here. Not sure they are the same problem.

    Read prefs: "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\config\userpref.blend"
    register_class(...):
    Warning: 'bc.main_panel' does not contain '_PT_' with prefix and suffix
    register_class(...):
    Warning: 'bc.repair_panel' does not contain '_PT_' with prefix and suffix
    register_class(...):
    Warning: 'bc.limdiss_panel' does not contain '_PT_' with prefix and suffix
    register_class(...):
    Warning: 'bc.topology_panel' does not contain '_PT_' with prefix and suffix
    register_class(...):
    Warning: 'bc.normals_panel' does not contain '_PT_' with prefix and suffix
    register_class(...):
    Warning: 'bc.objectdata_panel' does not contain '_PT_' with prefix and suffix
    Starting import process :: 0.00
    Loading file :: 0.00
    Calculate unit scale :: 0.00
    Process context filter :: 0.00
    Calculate model offset :: 0.01
    Predict dense mesh :: 0.00
    Set units :: 0.00
    Create project :: 0.01
    Process element filter :: 0.01
    Traceback (most recent call last):
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 734, in execute
        ifc_importer.execute()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 241, in execute
        self.create_collections()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1540, in create_collections
        self.create_aggregate_and_nest_collections()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1594, in create_aggregate_and_nest_collections
        ] + [
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1597, in <listcomp>
        if (r.RelatingObject.is_a("IfcElement") or r.RelatingObject.is_a("IfcElementType"))
    AttributeError: 'NoneType' object has no attribute 'is_a'
    Error: Python: Traceback (most recent call last):
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 734, in execute
        ifc_importer.execute()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 241, in execute
        self.create_collections()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1540, in create_collections
        self.create_aggregate_and_nest_collections()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1594, in create_aggregate_and_nest_collections
        ] + [
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1597, in <listcomp>
        if (r.RelatingObject.is_a("IfcElement") or r.RelatTraceback (most recent call last):
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 630, in load_handler
        self.finish_loading_project(context)
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 657, in finish_loading_project
        bpy.ops.bim.load_project_elements()
      File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
        ret = _op_call(self.idname_py(), None, kw)
    RuntimeError: Error: Python: Traceback (most recent call last):
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 734, in execute
        ifc_importer.execute()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 241, in execute
        self.create_collections()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1540, in create_collections
        self.create_aggregate_and_nest_collections()
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1594, in create_aggregate_and_nest_collections
        ] + [
      File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1597, in <listcomp>
        if (r.RelatingObject.is_a("IfcElement") or r.RelatingObject.is_a("IfcElementType"))
    AttributeError: 'NoneType' object has no attribute 'is_a'
    Location: C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy\ops.py:113
    
    
    
    steverugi
  • UPDATE2

    the workaround for me was to use the patch ExtractElements to create a new .ifc file, it looks OK so far :)

  • Hi! The problem was with that file containing invalid ifc - element #29942=IFCRELNESTS('3GxW15n6HD8hhltzfnYYiL',$,$,$,$,());.

    It can be found by running Ifc Validation from BlenderBIM Qualtity and Coordination -> Debug -> Validate IFC File.

    The problem with that element that it's IfcRelNests but it doesn't have both RelatingObject and RelatedObjects though they are not optional in IFC.

    Since this element is not used anywhere else in the file, it is safe to just delete it's line from .ifc.
    But any ideas how this issue appeared in the file, was the file created using BlenderBIM? You can look at nearby elements in .ifc file as they can give some clues what other elements were removed but it failed to clean up the relationship afterwards. Nearby IfcRelNests refer to cost items #29935=IFCCOSTITEM('1WE4mhySf5ZR9qEaKCXyeh',$,'Station Type3',$,$,$,$,$,$); and #29937=IFCCOSTITEM('2OFN9_Zc5CExXmMG$o_p7D',$,'Masonry',$,$,$,$,$,$);, so maybe it occured removing some other cost item. Would be nice to have a way to reproduce it, so we'd able to localize it and fix it.

    Arvsteverugi
  • Hi @Andrej730
    thank you so much for taking the time to go through the .ifc file, means a lot to me.
    Yes the file was created using BlenderBIM, I do not recall any particular activity but, as you pointed out, I might have inadvertently deleted an item in the BoQ or something before it crashed and couldn't be loaded anymore.
    If it happens again, next time I am going to try the Validate File feature myself and before reporting it I'll make sure to note down any possible circumstance.
    Cheers

    Owura_qu
  • Hi @Andrej730 , I couldn't find the Validate IFC File in Debug.

  • I had problem too. If you hoover on that icon should appear

    Arvsteverugi
Sign In or Register to comment.