Title: Bonsai not opening my IFC file · Issue #8893 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai not opening my IFC file · Issue #8893 · IfcOpenShell/IfcOpenShell
X Title: Bonsai not opening my IFC file · Issue #8893 · IfcOpenShell/IfcOpenShell
Description: Bug Description I went to import a an IFC model to my project using the blender file > import > ifc (geometry only) menu and now I cannot open my ifc project in Bonsai. The error says the IFC is "dirty" I can link the model into another ...
Open Graph Description: Bug Description I went to import a an IFC model to my project using the blender file > import > ifc (geometry only) menu and now I cannot open my ifc project in Bonsai. The error says the IFC is "d...
X Description: Bug Description I went to import a an IFC model to my project using the blender file > import > ifc (geometry only) menu and now I cannot open my ifc project in Bonsai. The error says the IFC...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8893
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai not opening my IFC file","articleBody":"### Bug Description\n\nI went to import a an IFC model to my project using the blender file > import > ifc (geometry only) menu and now I cannot open my ifc project in Bonsai. The error says the IFC is \"dirty\"\n\nI can link the model into another project and I can import it into my CAD program so I know that the data is more or less safe, but I don't know how I can continue working on this project in Bonsai. \n\n### Attachments\n\n[007_Int-SEBASTIANS-HOUSE-FIRST-FL_260723.txt](https://github.com/user-attachments/files/30320065/007_Int-SEBASTIANS-HOUSE-FIRST-FL_260723.txt)\n\n### Debug and Error Output\n\n```true\nos: Linux\nos_version: #1 SMP PREEMPT_DYNAMIC Sat Jul 18 19:16:16 UTC 2026\npython_version: 3.13.9\narchitecture: ('64bit', 'ELF')\nmachine: x86_64\nprocessor: \nblender_version: 5.1.1\nbonsai_version: 0.8.5\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: \n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Building\"}}\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcBuildingStorey\", \"predefined_type\": \"None\", \"name\": \"My Storey\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 48, \"Name\": \"My Storey\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 48, \"Name\": \"My Storey\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Site\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 1, \"Name\": \"My Project\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Site\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Site\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Building\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Site\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Building\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Building\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 48, \"Name\": \"My Storey\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Building\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 48, \"Name\": \"My Storey\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 48, \"Name\": \"My Storey\"}}\nlast_error: Traceback (most recent call last):\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/project/operator.py\", line 1143, in finish_loading_project\n bpy.ops.bim.load_project_elements()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/project/operator.py\", line 1231, in execute\n ifc_importer.execute()\n ~~~~~~~~~~~~~~~~~~~~^^\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/import_ifc.py\", line 291, in execute\n self.setup_arrays()\n ~~~~~~~~~~~~~~~~~^^\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/import_ifc.py\", line 1222, in setup_arrays\n tool.Blender.Modifier.Array.set_children_lock_state(element, i, True)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/tool/blender.py\", line 1295, in set_children_lock_state\n for child_obj in children:\n ^^^^^^^^\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/tool/blender.py\", line 1332, in get_children_objects\n child_obj = tool.Blender.get_object_from_guid(child_guid)\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/tool/blender.py\", line 1029, in get_object_from_guid\n element = tool.Ifc.get().by_guid(guid)\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/ifcopenshell/file.py\", line 847, in by_guid\n return self[guid]\n ~~~~^^^^^^\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/ifcopenshell/file.py\", line 825, in __getitem__\n return entity_instance(self.wrapped_data.by_guid(str(key)), self)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"/home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/ifcopenshell/ifcopenshell_wrapper.py\", line 5852, in by_guid\n return _ifcopenshell_wrapper.file_by_guid(self, guid)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^\nRuntimeError: Instance with GlobalId '2OjvTZn3DAKuQdxi4TvMtd' not found\nLocation: /home/dustin/.config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/project/operator.py:1143\n\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: /run/media/dustin/6FBF-F7CB/007_Int-SEBASTIANS-HOUSE-FIRST-FL_260723.ifc\nifc_is_dirty: True\nifc: 007_Int-SEBASTIANS-HOUSE-FIRST-FL_260723.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.5\noriginating_system: Bonsai 0.8.5\n```","author":{"url":"https://github.com/Dpettegrew","@type":"Person","name":"Dpettegrew"},"datePublished":"2026-07-23T19:27:51Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8893"}
| 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:e1c1c9e3-d0fe-dc8a-fa4d-7cfb19c06948 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E628:39D550:9342DC:CDDE0A:6B048382 |
| html-safe-nonce | b5b25672e13be3e436b4196b3000f239974bbb2d0e2832b6f6110282c1a21fb5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjI4OjM5RDU1MDo5MzQyREM6Q0RERTBBOjZCMDQ4MzgyIiwidmlzaXRvcl9pZCI6IjY3MTkyMDU4OTg0NTU5NTAxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 89c5bc0d57ce6e5776bce3cbd4736f7633964a0062827ca9e95c73cd0612f4e0 |
| hovercard-subject-tag | issue:4962196036 |
| 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/8893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/127672f42457473372238da9fe83d912460d38298118c0b5a2bbb9c36c9af49e/IfcOpenShell/IfcOpenShell/issues/8893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/127672f42457473372238da9fe83d912460d38298118c0b5a2bbb9c36c9af49e/IfcOpenShell/IfcOpenShell/issues/8893 |
| og:image:alt | Bug Description I went to import a an IFC model to my project using the blender file > import > ifc (geometry only) menu and now I cannot open my ifc project in Bonsai. The error says the IFC is "d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Dpettegrew |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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