Title: Boolean Error · Issue #7959 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Boolean Error · Issue #7959 · IfcOpenShell/IfcOpenShell
X Title: Boolean Error · Issue #7959 · IfcOpenShell/IfcOpenShell
Description: Bug Description Good morning everyone, I'd like to report another bug that's unfortunately quite significant for Booleans. In practice, when inserting a custom extruded solid, inserting another object inside it, such as a cylinder or a c...
Open Graph Description: Bug Description Good morning everyone, I'd like to report another bug that's unfortunately quite significant for Booleans. In practice, when inserting a custom extruded solid, inserting another obj...
X Description: Bug Description Good morning everyone, I'd like to report another bug that's unfortunately quite significant for Booleans. In practice, when inserting a custom extruded solid, inserting ano...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7959
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Boolean Error","articleBody":"### Bug Description\n\nGood morning everyone, I'd like to report another bug that's unfortunately quite significant for Booleans.\nIn practice, when inserting a custom extruded solid, inserting another object inside it, such as a cylinder or a cube, when I assign the Boolean in the side panel in difference mode, the Boolean is applied when I close Editing mode. However, when the project is saved, this error is immediately displayed, and the IFC file is corrupted and appears as empty.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nPython: Traceback (most recent call last):\n File \"C:\\Program Files\\Blender Foundation\\Blender 5.1\\5.1\\scripts\\startup\\bl_ui\\space_view3d.py\", line 65, in draw\n self.draw_tool_settings(context)\n ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"C:\\Program Files\\Blender Foundation\\Blender 5.1\\5.1\\scripts\\startup\\bl_ui\\space_view3d.py\", line 78, in draw_tool_settings\n tool = ToolSelectPanelHelper.draw_active_tool_header(\n context, layout,\n tool_key=('VIEW_3D', tool_mode),\n )\n File \"C:\\Program Files\\Blender Foundation\\Blender 5.1\\5.1\\scripts\\startup\\bl_ui\\space_toolsystem_common.py\", line 832, in draw_active_tool_header\n draw_settings(context, layout, tool)\n ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\workspace.py\", line 110, in draw_settings\n CreateObjectUI.draw(context, layout, ifc_element_type=ifc_element_type)\n ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\workspace.py\", line 486, in draw\n AuthoringData.load(ifc_element_type)\n ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 85, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 262, in has_extrusion\n return bool(tool.Model.get_extrusion(representation))\n ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\model.py\", line 315, in get_extrusion\n item = representation.Items[0]\n ~~~~~~~~~~~~~~~~~~~~^^^\nIndexError: tuple index out of range\n______________________________________________________________________________________________________________\n\n\n\n\n\nos: Windows\nos_version: 10.0.26200\npython_version: 3.13.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: AMD64 Family 25 Model 117 Stepping 2, AuthenticAMD\nblender_version: 5.1.0\nbonsai_version: 0.8.5\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: \n# ifcopenshell.api: geometry.add_boolean\n>>> {}\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 63, \"Name\": \"AAAA\"}, \"name\": \"BBIM_Boolean\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 101, \"Name\": \"BBIM_Boolean\"}, \"properties\": \"{'Data': IfcText('[100]')}\"}\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_object\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# ifcopenshell.api: geometry.validate_type\n>>> {}\n# ifcopenshell.api: geometry.add_boolean\n>>> {}\n# operator: BIM_OT_save_project\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_import_representation_items\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_object\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\ifc.py\", line 525, in execute_ifc_operator\n result = getattr(operator, \"_invoke\")(context, event)\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2461, in _invoke\n self.edit_representation_item(context.active_object)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2582, in edit_representation_item\n tool.Geometry.reload_representation(props.representation_obj)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\geometry.py\", line 1327, in reload_representation\n representation = tool.Geometry.resolve_mapped_representation(representation)\n File \"C:\\Users\\yuria\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\geometry.py\", line 1213, in resolve_mapped_representation\n return cls.resolve_mapped_representation(representation.Items[0].MappingSource.MappedRepresentation)\n ~~~~~~~~~~~~~~~~~~~~^^^\nIndexError: tuple index out of range\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: C:/Users/yuria/Desktop/BOOL02.ifc\nifc_is_dirty: True\nifc: BOOL02.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.5\noriginating_system: Bonsai 0.8.5\n```","author":{"url":"https://github.com/Yurialo","@type":"Person","name":"Yurialo"},"datePublished":"2026-04-18T09:25:26Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7959"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:666143f5-c5f8-f800-3e0e-765a07fae1c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6F2:3FAE88:1AA850:24A634:6B04B45E |
| html-safe-nonce | ff645696f64599ed9b7ff5713206821da68f021066fa60d80b3ed38349f1522b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkYyOjNGQUU4ODoxQUE4NTA6MjRBNjM0OjZCMDRCNDVFIiwidmlzaXRvcl9pZCI6IjU4OTc2NTQyOTAxMjU5OTMwNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 407c89d4532528151636c95bd920bf5c4f28869cc90494216cbf2a33d849633c |
| hovercard-subject-tag | issue:4287471664 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/7959/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f39036401f9e039d08a78a9f501e54f09770bc383d76e078e6b4e34650a8d563/IfcOpenShell/IfcOpenShell/issues/7959 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f39036401f9e039d08a78a9f501e54f09770bc383d76e078e6b4e34650a8d563/IfcOpenShell/IfcOpenShell/issues/7959 |
| og:image:alt | Bug Description Good morning everyone, I'd like to report another bug that's unfortunately quite significant for Booleans. In practice, when inserting a custom extruded solid, inserting another obj... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yurialo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width