Title: Deleting ifc elements · Issue #8071 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Deleting ifc elements · Issue #8071 · IfcOpenShell/IfcOpenShell
X Title: Deleting ifc elements · Issue #8071 · IfcOpenShell/IfcOpenShell
Description: Bug Description os: Darwin os_version: Darwin Kernel Version 22.6.0: Tue Jul 15 08:22:28 PDT 2025; root:xnu-8796.141.3.713.2~2/RELEASE_X86_64 python_version: 3.11.11 architecture: ('64bit', '') machine: x86_64 processor: i386 blender_ver...
Open Graph Description: Bug Description os: Darwin os_version: Darwin Kernel Version 22.6.0: Tue Jul 15 08:22:28 PDT 2025; root:xnu-8796.141.3.713.2~2/RELEASE_X86_64 python_version: 3.11.11 architecture: ('64bit', '') mac...
X Description: Bug Description os: Darwin os_version: Darwin Kernel Version 22.6.0: Tue Jul 15 08:22:28 PDT 2025; root:xnu-8796.141.3.713.2~2/RELEASE_X86_64 python_version: 3.11.11 architecture: ('64bit',...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8071
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deleting ifc elements","articleBody":"### Bug Description\n\n```\nos: Darwin\nos_version: Darwin Kernel Version 22.6.0: Tue Jul 15 08:22:28 PDT 2025; root:xnu-8796.141.3.713.2~2/RELEASE_X86_64\npython_version: 3.11.11\narchitecture: ('64bit', '')\nmachine: x86_64\nprocessor: i386\nblender_version: 4.5.9 LTS\nbonsai_version: 0.8.5-post1\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: \n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3054, \"Name\": \"Roof\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3225, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3225, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3054, \"Name\": \"Roof\"}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3222, \"Name\": null}}\n# operator: BIM_OT_override_mode_set_object\n# operator: BIM_OT_override_outliner_delete\n# operator: BIM_OT_override_object_delete\n# operator: BIM_OT_override_outliner_delete\n# operator: BIM_OT_override_object_delete\n# ifcopenshell.api: root.remove_product\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 2900, \"Name\": \"Slab\"}}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 2900, \"Name\": \"Slab\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 2912, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 2912, \"Name\": null}}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 2900, \"Name\": \"Slab\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 2907, \"Name\": \"EPset_Parametric\"}}\n# ifcopenshell.api: type.unassign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 2900, \"Name\": \"Slab\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 2791, \"Name\": null}}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 2900, \"Name\": \"Slab\"}]}\n# operator: BIM_OT_override_outliner_delete\n# operator: BIM_OT_override_object_delete\n# operator: BIM_OT_override_outliner_delete\n# operator: BIM_OT_override_object_delete\nlast_error: Traceback (most recent call last):\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/ifc.py\", line 523, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/geometry/operator.py\", line 1115, in _execute\n bpy.ops.bim.override_object_delete(is_batch=self.is_batch)\n File \"/Applications/Blender.app/Contents/Resources/4.5/scripts/modules/bpy/ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Erreur: Python : Traceback (most recent call last):\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/ifc.py\", line 523, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/geometry/operator.py\", line 927, in _execute\n elif tool.Geometry.is_representation_item(obj):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/tool/geometry.py\", line 1106, in is_representation_item\n return bool(cls.get_representation_item(obj))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/tool/geometry.py\", line 1099, in get_representation_item\n and ((item := tool.Ifc.get().by_id(ifc_id)).is_a(\"IfcRepresentationItem\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/ifcopenshell/file.py\", line 836, in by_id\n return self[id]\n ~~~~^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/ifcopenshell/file.py\", line 823, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/pecot/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/ifcopenshell/ifcopenshell_wrapper.py\", line 5848, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #2913 not found\nPosition : /Applications/Blender.app/Contents/Resources/4.5/scripts/modules/bpy/ops.py:109\n\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: /Users/pecot/Google Drive/_290-rue-Lavigueur_E2026/Blender-Bonsai_dossier/_290rueLavigueur_marquisse_260517_BIS.ifc\nifc_is_dirty: False\nifc: _290rueLavigueur_marquisse_260517_BIS.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.5-post1\noriginating_system: Bonsai 0.8.5-post1\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/pecot","@type":"Person","name":"pecot"},"datePublished":"2026-05-17T17:47:03Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8071"}
| 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:f3271463-4a86-1408-f05f-d0b74a5ac8e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA66:1C412F:6629C1:900933:6B0479AB |
| html-safe-nonce | 6df00dd34bfb72f601f0e95437e10f8824275fc4e234b64fa88e8e7344e393a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTY2OjFDNDEyRjo2NjI5QzE6OTAwOTMzOjZCMDQ3OUFCIiwidmlzaXRvcl9pZCI6IjcyNDA3NDc0OTc2NzE2NTM4MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6232469e039adaeb67eec39f0fbffdfc86d0e811517a4b99a4c0cc314eb0720d |
| hovercard-subject-tag | issue:4464405895 |
| 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/8071/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbc6b1bd9b8af5674b7e3e713730760438be8b9b20519878bb58de6cce27f376/IfcOpenShell/IfcOpenShell/issues/8071 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbc6b1bd9b8af5674b7e3e713730760438be8b9b20519878bb58de6cce27f376/IfcOpenShell/IfcOpenShell/issues/8071 |
| og:image:alt | Bug Description os: Darwin os_version: Darwin Kernel Version 22.6.0: Tue Jul 15 08:22:28 PDT 2025; root:xnu-8796.141.3.713.2~2/RELEASE_X86_64 python_version: 3.11.11 architecture: ('64bit', '') mac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pecot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| 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