Skip to content

Problems/erros with Spaces #9470

Description

@Frank-David007

Bug Description

When I create a space using the 3D cursor, the space is generated, but it lacks geometry. If I activate "Toggle Space Visibility," I get a long list of errors. While I can run "Perform Quantity Take-Off"—which does report a number of created entities—the displayed values ​​are all zero.

This error is reproducible and occurs consistently every time I attempt to define a space and have the values ​​calculated automatically.

Errorlog from Blender/Bim:

os: Windows
os_version: 10.0.26100
python_version: 3.13.13
architecture: ('64bit', 'WindowsPE')
machine: AMD64
processor: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
blender_version: 5.2.0 LTS
bonsai_version: 0.8.5
bonsai_commit_hash: None
bonsai_commit_date: None
bonsai_git_branch: None
last_actions: 
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_draw_polyline_slab
# operator: BIM_OT_override_object_duplicate_move
# ifcopenshell.api: root.copy_class
>>> {"product": {"cast_type": "entity_instance", "value": 348, "Name": "Slab"}}
# ifcopenshell.api: style.assign_representation_styles
>>> {"shape_representation": {"cast_type": "entity_instance", "value": 383, "Name": null}, "styles": "[]", "should_use_presentation_style_assignment": "False"}
# operator: BIM_OT_spatial_hotkey
# ifcopenshell.api: root.create_entity
>>> {"ifc_class": "IfcSpace", "predefined_type": "None", "name": "Space"}
# ifcopenshell.api: owner.create_owner_history
>>> {}
# ifcopenshell.api: aggregate.assign_object
>>> {"products": [{"cast_type": "entity_instance", "value": 393, "Name": "Space"}], "relating_object": {"cast_type": "entity_instance", "value": 39, "Name": "My Storey"}}
# ifcopenshell.api: spatial.unassign_container
>>> {"products": "[]"}
# ifcopenshell.api: owner.create_owner_history
>>> {}
# ifcopenshell.api: geometry.assign_representation
>>> {"product": {"cast_type": "entity_instance", "value": 393, "Name": "Space"}, "representation": {"cast_type": "entity_instance", "value": 404, "Name": null}}
# ifcopenshell.api: owner.update_owner_history
>>> {"element": {"cast_type": "entity_instance", "value": 393, "Name": "Space"}}
# operator: BIM_OT_spatial_hotkey
last_error: Traceback (most recent call last):
  File "C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\bim\ifc.py", line 523, in execute_ifc_operator
    result = getattr(operator, "_execute")(context)
  File "C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\bim\module\spatial\workspace.py", line 143, in _execute
    getattr(self, f"hotkey_{self.hotkey}")()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\bim\module\spatial\workspace.py", line 180, in hotkey_S_T
    bpy.ops.bim.toggle_space_visibility()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\bim\module\model\space.py", line 105, in execute
    core.toggle_space_visibility(tool.Ifc, tool.Spatial)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\core\spatial.py", line 272, in toggle_space_visibility
    spatial.toggle_spaces_visibility_wired_and_textured(spaces)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\tool\spatial.py", line 1220, in toggle_spaces_visibility_wired_and_textured
    assert isinstance(first_obj, bpy.types.Object)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Location: C:\Users\porebskif\AppData\Roaming\Blender Foundation\Blender\5.2\extensions\.local\lib\python3.13\site-packages\bonsai\bim\module\spatial\workspace.py:180


blend_file_path: Not saved
blend_file_dirty: N/A
ifc_file_path: No IFC loaded
ifc_is_dirty: N/A
ifc: Unsaved
schema: IFC4
preprocessor_version: IfcOpenShell 0.8.5
originating_system: IfcOpenShell 0.8.5

Attachments

No response

Debug and Error Output


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions