Title: Error opening IfcProject in Bonsai (`ifc_file.by_type("IfcContext")[0]`) · Issue #7350 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error opening IfcProject in Bonsai (`ifc_file.by_type("IfcContext")[0]`) · Issue #7350 · IfcOpenShell/IfcOpenShell
X Title: Error opening IfcProject in Bonsai (`ifc_file.by_type("IfcContext")[0]`) · Issue #7350 · IfcOpenShell/IfcOpenShell
Description: Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel blender_version: 4.5.4 LTS bonsai_version: 0.8....
Open Graph Description: Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel blender...
X Description: Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 183 Stepping 1, Genu...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7350
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error opening IfcProject in Bonsai (`ifc_file.by_type(\"IfcContext\")[0]`)","articleBody":"### Bug Description\n\n```\nos: Windows\nos_version: 10.0.26100\npython_version: 3.11.11\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel\nblender_version: 4.5.4 LTS\nbonsai_version: 0.8.4-alpha251112\nbonsai_commit_hash: 080222f\nbonsai_commit_date: 2025-11-12T12:56:35+05:00\nlast_actions: \nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\Khalid Mohamed\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1062, in finish_loading_project\n bpy.ops.bim.load_project_elements()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\Khalid Mohamed\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1150, in execute\n ifc_importer.execute()\n File \"C:\\Users\\Khalid Mohamed\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\import_ifc.py\", line 257, in execute\n self.calculate_model_offset()\n File \"C:\\Users\\Khalid Mohamed\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\import_ifc.py\", line 474, in calculate_model_offset\n tool.Loader.guess_false_origin(self.file)\n File \"C:\\Users\\Khalid Mohamed\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\loader.py\", line 920, in guess_false_origin\n project = ifc_file.by_type(\"IfcContext\")[0]\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^\nIndexError: list index out of range\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:109\n\n\nifc: PBR-BWP-MAS-BIM-AR-LD4-E01-ZZ-0001-IFC4.ifc\nschema: IFC4\npreprocessor_version: The EXPRESS Data Manager Version 5.02.0100.07 : 28 Aug 2013\noriginating_system: 22.0.2.392 - Exporter 22.0.2.392 - Alternate UI 22.0.2.392\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/khalidmahrousakkar","@type":"Person","name":"khalidmahrousakkar"},"datePublished":"2025-11-12T12:39:03Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7350"}
| 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:75908deb-5ef0-7e38-c537-a002dc9686e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90E2:22CC3D:6AF01E:8FB6F2:6B04A9ED |
| html-safe-nonce | a0db15c93741d3c02bfea2650f3befb92f1b4e2059dfbed473e4fe362724377d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEUyOjIyQ0MzRDo2QUYwMUU6OEZCNkYyOjZCMDRBOUVEIiwidmlzaXRvcl9pZCI6IjgwNzM0OTk0OTI2NzIxMjEzMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d59f86e33e92f520fd7724fb7765f7e693ee20c477fdf9cc1dcf6c325cf973ac |
| hovercard-subject-tag | issue:3616378672 |
| 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/7350/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41adcf0ca4a36a8c1491c72c481aed2b7f8fffd8e450bd87b28ba642336676d6/IfcOpenShell/IfcOpenShell/issues/7350 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41adcf0ca4a36a8c1491c72c481aed2b7f8fffd8e450bd87b28ba642336676d6/IfcOpenShell/IfcOpenShell/issues/7350 |
| og:image:alt | Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel blender... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | khalidmahrousakkar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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