Blender 5 bonsai layer priority regenerate wall

MasMas
edited December 2025 in General

For Info: Blender 5 bonsai 251201 creates errors when regenerate walls in combination with layered walls and priority, slabs... in 4.5 and bonsai 251117 wall priority is working without errors...

Working with layered slabs + layered walls with priority of layers (I didn´t get it done - but tried it in Blender5, maybe its possible in 4.5 it´s time consuming to create a nice and accurate model and try all combinations...)

Comments

  • Can you share the error messages?

  • MasMas
    edited December 2025
    os: Windows
    os_version: 10.0.26200
    python_version: 3.11.13
    architecture: ('64bit', 'WindowsPE')
    machine: AMD64
    processor: Intel64 Family 6 Model 141 Stepping 1, GenuineIntel
    blender_version: 5.0.0
    bonsai_version: 0.8.5-alpha251201
    bonsai_commit_hash: 349cbf2
    bonsai_commit_date: 2025-12-01T11:06:09-06:00
    last_actions: 
    # operator: BIM_OT_hotkey
    # operator: BIM_OT_recalculate_wall
    # ifcopenshell.api: geometry.regenerate_wall_representation
    >>> {}
    last_error: Traceback (most recent call last):
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\ifc.py", line 526, in execute_ifc_operator
        result = getattr(operator, "_execute")(context)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\workspace.py", line 1132, in _execute
        getattr(self, f"hotkey_{self.hotkey}")()
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\workspace.py", line 1303, in hotkey_S_G
        bpy.ops.bim.recalculate_wall()
      File "C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\modules\bpy\ops.py", line 109, in __call__
        ret = _op_call(self.idname_py(), kw)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    RuntimeError: Error: Python: Traceback (most recent call last):
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\ifc.py", line 156, in get_cache
        IfcStore.cache = ifcopenshell.geom.serializers.hdf5(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\ifcopenshell\ifcopenshell_wrapper.py", line 4659, in __init__
        this = _ifcopenshell_wrapper.new_HdfSerializer(hdf_filename, geometry_settings, settings, read_only)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    RuntimeError: H5Fopen failed
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\ifc.py", line 526, in execute_ifc_operator
        result = getattr(operator, "_execute")(context)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\wall.py", line 373, in _execute
        tool.Model.recalculate_walls(objects)
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\tool\model.py", line 2586, in recalculate_walls
        cls.recreate_wall(element, wall)
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\tool\model.py", line 2546, in recreate_wall
        bonsai.core.geometry.switch_representation(
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\core\geometry.py", line 126, in switch_representation
        geometry.clear_cache(element)
      File "C:\Users\XX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\tool\geometry.py", line 113, in clear_cache
        cache = IfcStore.get_cache()
                ^^^^^^^^^^^^^^^^^^^^
      File "C:\XXXX\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\.local\lib\python3.11\site-packages\bonsai\bim\ifc.py", line 171, in get_cache
        os.remove(IfcStore.cache_path)
    PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\XXX\\AppData\\Local\\bonsai\\bonsai\\Cache\\3884f4ee3b16dd5144fe2db21fc6c898.h5'
    Location: C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\modules\bpy\ops.py:109
    
    
    blend_file_path: Not saved
    blend_file_dirty: N/A
    ifc_file_path: X:X/X/X/X.ifc
    ifc_is_dirty: True
    ifc: X.ifc
    schema: IFC4
    preprocessor_version: IfcOpenShell 0.8.4-alpha251117
    originating_system: Bonsai 0.8.4-alpha251117-487a4f3
    
  • There are also other things (one wall get a hull) saved in blender4.5 (bonsai0.8.4-251117) , opened in bonsai 5 with (bonsai win64py3.11 251201)

  • Can you share the .ifc file, or a pared down version of it?

  • MasMas
    edited December 2025

    hull is no problem, just regenerate and the representation is working again...
    file attatched, but there is not much in it

  • If i link this file as .ifc in another project I´m missing a wall :-( wall.004 (displayed in bimvision, originalfile,...)

  • edited December 2025

    So if i open efh_EG - Kopie.ifc in 4.5, and while that is open, I open the same file in 5.0, i get the same error message.
    I'm not sure if this is a bug, or if this is just how the plumbing works. Seems like a bug.
    If you open the file individually in either 4.5 or 5.0 (without it being open in the other version) i don't get the error.
    ...
    Not sure what your trying to communitate with haus - Kopie.ifc. Are you having the same problem as efh_EG - Kopie.ifc, or is this a separate issue?

  • Maybe by design, you can't have two blender sessions open the same file.
    https://claude.ai/share/c8a21f26-d5d8-4c52-8119-898b916145e1

  • Also, irregardless of the error, there's a problem with that one wall 1f$XLGxHP1x9$Ujh_kz6wN, in that, it should not be 'wireframe' every time you open the file.
    I'd post a bug on github for that one.

    zoomerMas
  • MasMas
    edited December 2025

    thx for answering, I just sayed that I got an error in blender 5 when I try to use walls with priority (that doesnt work, and if I move a wall and try to regenerate it - thought maybe this could bring the solution- the error raised up). (havent had opened the 2 files in different versions, just after you asked for a bugreport)
    the 2nd file is the same project, I just worked on (and renamed it), and if I link it, a wall isnt displayed (thats not cool). (Thought i try to figure out a workflow with more files, one for Arch -link that for HVAC/MEP creating (but that doesnt work as expected, because on wall is missing -so I dont trust it- and I cant hide storeys. (thought i can do a workflow like with x-refs)
    So I have to work in one file and split it after, if there are some performance troubles.
    Thats two different tasks with 2 different issues in on project :-) If someone cares its ok, if not, its also Ok :-)
    (I´m just a little worried about this things, don´t like to be not sure if all parts there, when I´m creating a precise modell with hiden parts, behind suspended walls,.. cant always control if something isnt stored or displayed...)

  • To complete the missing wall in linked file issue - think it´s because I did a cut (priority of the cladding) exact on the edge. (Its not perfect, I just extended the wall till the point, where normaly the cladding ends, hope this solves this problem) (sometimes it´s a little tricky...)

    Bedson
  • MasMas
    edited December 2025

    To the core-developers:
    Hi there, I don´t know how others handle that things (or if they using stable versions and don´t update bonsai whilest doing projects). But the biggest issue for me is, that (for sure, I save after errors reopen the files, working on) that there are things that already have been done nice, change sometimes.
    If positions (had that at with windows) are changing, if halfspacesolids not done ---> data is there as "BBIM-boolean" Type GlobalId = "0V8F3ajpb5$Qy9u43LDYgJ") that drives me crazy sometimes. Thought this times are past (years ago I had the same with MEP parts, did some parts 3 times). (opened it in archicad, and it looked good, didn´t saved it in there --> so I don´t know if the corefile changed by this opening)
    As modeler, if I can´t rely on positions, parts -sry for that-, but thats worst case... I would have so much parts to do with halfspace solids, and little details, but that takes the fun of modeling (maybe I do it in a blenderway and create objects for all as tesselated geometry, but thats not the "BIM" way with instancing...) (Used blender 4.5 bonsai-ive looked at it with some versions)

  • Can you provide a pared down ifc file with reproducible steps?

    When you're on the front lines of development, this stuff happens sometimes.

  • MasMas
    edited December 2025

    Sry, I can't. Because I don't know how to reproduce it. It seems sometimes things are lost at saving (created two halfspaces on those extruded profiles of the same type, those are there as bbim-boolean, but there are no planes in itemmode, also the style of the applied material was gone, solved that with applying representationstyle,...). Flipped Parts (windows, walls, doors) also craeating troubles somtimes (in combination with void position,...)
    Thx,...

  • MasMas
    edited December 2025

    After rethinking, I think I got the point that broke it, I've modified the ifcprofile, did the halfspacesolids again and some repositioning, saved the file and there, I think the "cuts" have been lost in the nirvana. (Layer8 problem maybe, or "bonsai doesn't forgive leaving the standardpath")

  • MasMas
    edited December 2025

    Happy again, after checking/knowing my fail...

Sign In or Register to comment.