Title: Error trying to delete a drawing · Issue #7266 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error trying to delete a drawing · Issue #7266 · IfcOpenShell/IfcOpenShell
X Title: Error trying to delete a drawing · Issue #7266 · IfcOpenShell/IfcOpenShell
Description: Bug Description If I try to remove the LAYOUT OPTION 7 - 1ST FLOOR drawing i get the following error. file: hub.openingdesign.com/OpeningDesign/Cool_Car_Guys/src/commit/1eab45987f08792b489ba7d1b3837f122b7c2cd1/Open/Models/Bonsai/OD_Cool_...
Open Graph Description: Bug Description If I try to remove the LAYOUT OPTION 7 - 1ST FLOOR drawing i get the following error. file: hub.openingdesign.com/OpeningDesign/Cool_Car_Guys/src/commit/1eab45987f08792b489ba7d1b383...
X Description: Bug Description If I try to remove the LAYOUT OPTION 7 - 1ST FLOOR drawing i get the following error. file: hub.openingdesign.com/OpeningDesign/Cool_Car_Guys/src/commit/1eab45987f08792b489ba7d1b383...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7266
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error trying to delete a drawing","articleBody":"### Bug Description\n\nIf I try to remove the `LAYOUT OPTION 7 - 1ST FLOOR` drawing i get the following error. \n\nfile: [\nhub.openingdesign.com/OpeningDesign/Cool_Car_Guys/src/commit/1eab45987f08792b489ba7d1b3837f122b7c2cd1/Open/Models/Bonsai/OD_Cool_Car_Guys.ifc](https://hub.openingdesign.com/OpeningDesign/Cool_Car_Guys/src/commit/1eab45987f08792b489ba7d1b3837f122b7c2cd1/Open/Models/Bonsai/OD_Cool_Car_Guys.ifc)\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\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.2 LTS\nbonsai_version: 0.0.0\nbonsai_commit_hash: 486651e\nbonsai_commit_date: 2025-10-18T13:43:34-05:00\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 526, 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 2427, 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 2505, in get_sheet_references\n if reference.Location == drawing_reference.Location:\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'Location'\n\nifc: OD_Cool_Car_Guys.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.0.0\noriginating_system: Bonsai 0.8.4-alpha251018-5885924\n```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2025-10-20T15:16:42Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7266"}
| 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:84bd9345-313b-2031-db5a-97d6e5803a3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D55A:3B5D6F:1431EB:1C3D64:6B046F89 |
| html-safe-nonce | 6dc7ce880f94c02da9cc14d5fe9bd125867b0fa95008a83ae5a381ad9eff7bf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTVBOjNCNUQ2RjoxNDMxRUI6MUMzRDY0OjZCMDQ2Rjg5IiwidmlzaXRvcl9pZCI6IjczMTk3MDU0MjQ4MjIwMzg0MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 715ed438b778a1d341b3c808e28f70595c938cdcba241ab98fe3e316564cd7e6 |
| hovercard-subject-tag | issue:3532850202 |
| 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/7266/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83a74f7e9d9666217adab9839009b8fc7c9990ce9715891c62a73dffeaebd3ad/IfcOpenShell/IfcOpenShell/issues/7266 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83a74f7e9d9666217adab9839009b8fc7c9990ce9715891c62a73dffeaebd3ad/IfcOpenShell/IfcOpenShell/issues/7266 |
| og:image:alt | Bug Description If I try to remove the LAYOUT OPTION 7 - 1ST FLOOR drawing i get the following error. file: hub.openingdesign.com/OpeningDesign/Cool_Car_Guys/src/commit/1eab45987f08792b489ba7d1b383... |
| 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 | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| 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 | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| 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