Title: Can't `bim.remove_drawing` a corrupt drawing · Issue #8122 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Can't `bim.remove_drawing` a corrupt drawing · Issue #8122 · IfcOpenShell/IfcOpenShell
X Title: Can't `bim.remove_drawing` a corrupt drawing · Issue #8122 · IfcOpenShell/IfcOpenShell
Description: activate Type A2 drawing. And then try to bim.remove_drawing it. get the following error. Highland_Haven - Copy.ifc.txt os: Windows os_version: 10.0.19045 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 proces...
Open Graph Description: activate Type A2 drawing. And then try to bim.remove_drawing it. get the following error. Highland_Haven - Copy.ifc.txt os: Windows os_version: 10.0.19045 python_version: 3.11.11 architecture: ('64...
X Description: activate Type A2 drawing. And then try to bim.remove_drawing it. get the following error. Highland_Haven - Copy.ifc.txt os: Windows os_version: 10.0.19045 python_version: 3.11.11 architecture: (...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8122
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't `bim.remove_drawing` a corrupt drawing","articleBody":"activate `Type A2` drawing. \nAnd then try to `bim.remove_drawing` it. \n\nget the following error.\n\n\n[Highland_Haven - Copy.ifc.txt](https://github.com/user-attachments/files/28402374/Highland_Haven.-.Copy.ifc.txt)\n\n\n\n```\nos: Windows\nos_version: 10.0.19045\npython_version: 3.11.11\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel\nblender_version: 4.5.7 LTS\nbonsai_version: 0.0.0\nbonsai_commit_hash: 7489d08\nbonsai_commit_date: 2026-05-29T09:49:27-05:00\nbonsai_git_branch: BonsaiPR_base\nlast_actions: \n# operator: BIM_OT_remove_drawing\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 531, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\drawing\\operator.py\", line 3287, in _execute\n sheet_references = tool.Drawing.get_sheet_references(drawing)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\drawing.py\", line 3180, in get_sheet_references\n if reference.Location == drawing_reference.Location:\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'Location'\n\nblend_file_path: D:\\Dropbox\\Gitea_OD\\Highland_Haven\\Open\\Models_and_CAD\\BlenderBIM\\temp.blend\nblend_file_dirty: True\nifc_file_path: D:/Dropbox/Gitea_OD/Highland_Haven/Open/Models_and_CAD/BlenderBIM/Highland_Haven.ifc\nifc_is_dirty: True\nifc: Highland_Haven.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.0.0\noriginating_system: Bonsai 0.8.6-alpha260529-7489d08\n```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-05-29T16:53:41Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8122"}
| 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:800b5822-c541-453c-2292-9ed54cdf0f09 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94D0:109053:3DA122:5486CD:6B04BE5F |
| html-safe-nonce | 15078d5715075976b60cc88e9e5fcdba087e274b8371628eff54cd95d300cf84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEQwOjEwOTA1MzozREExMjI6NTQ4NkNEOjZCMDRCRTVGIiwidmlzaXRvcl9pZCI6IjcwMzAxMjA5Nzg2MjU5MDQyMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f25636a9d643c8ede7ad21650eecba1edd6c078701b681ad5e7ac3e590e56f5f |
| hovercard-subject-tag | issue:4550157285 |
| 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/8122/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78e7c183e0beec77cfe1d793b376701b857bd0d3216d90a5a4f1257e063b85c8/IfcOpenShell/IfcOpenShell/issues/8122 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78e7c183e0beec77cfe1d793b376701b857bd0d3216d90a5a4f1257e063b85c8/IfcOpenShell/IfcOpenShell/issues/8122 |
| og:image:alt | activate Type A2 drawing. And then try to bim.remove_drawing it. get the following error. Highland_Haven - Copy.ifc.txt os: Windows os_version: 10.0.19045 python_version: 3.11.11 architecture: ('64... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theoryshaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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