Title: Array data is not updated after removing an element (leading to issue importing IFC file) · Issue #6590 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Array data is not updated after removing an element (leading to issue importing IFC file) · Issue #6590 · IfcOpenShell/IfcOpenShell
X Title: Array data is not updated after removing an element (leading to issue importing IFC file) · Issue #6590 · IfcOpenShell/IfcOpenShell
Description: Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD blender_version: 4.3.2 bonsai_version: 0.8.2-alpha...
Open Graph Description: Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD blender_ve...
X Description: Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 23 Model 24 Stepping 1, Authent...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6590
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Array data is not updated after removing an element (leading to issue importing IFC file)","articleBody":"### Bug Description\n\n```\nos: Windows\nos_version: 10.0.26100\npython_version: 3.11.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD\nblender_version: 4.3.2\nbonsai_version: 0.8.2-alpha250407\nbonsai_commit_hash: 0bbe1aa\nbonsai_commit_date: 2025-04-07T16:20:22+05:00\nlast_actions: \nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1003, in finish_loading_project\n bpy.ops.bim.load_project_elements()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.3\\4.3\\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\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1092, in execute\n ifc_importer.execute()\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\import_ifc.py\", line 279, in execute\n self.setup_arrays()\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\import_ifc.py\", line 1138, in setup_arrays\n tool.Blender.Modifier.Array.constrain_children_to_parent(element)\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\blender.py\", line 1140, in constrain_children_to_parent\n for child in children:\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\blender.py\", line 1179, in get_all_children_objects\n yield from cls.get_children_objects(array_modifier)\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\blender.py\", line 1192, in get_children_objects\n child_obj = tool.Blender.get_object_from_guid(child_guid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\blender.py\", line 890, in get_object_from_guid\n element = tool.Ifc.get().by_guid(guid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 500, in by_guid\n return self[guid]\n ~~~~^^^^^^\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 478, in __getitem__\n return entity_instance(self.wrapped_data.by_guid(str(key)), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\danis\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 5863, in by_guid\n return _ifcopenshell_wrapper.file_by_guid(self, guid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance with GlobalId '33kodrGan9cQjXMqrTZPxf' not found\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.3\\4.3\\scripts\\modules\\bpy\\ops.py:109\n\n\nifc: Øvelse9.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell v0.7.0-476ab506d\noriginating_system: BlenderBIM 0.0.230328\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/Danish2727","@type":"Person","name":"Danish2727"},"datePublished":"2025-04-21T16:21:49Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6590"}
| 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:736b2b70-2452-2e41-4f72-2db2d4668137 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DC0:1978BF:C39F:FD2B:6B047CAC |
| html-safe-nonce | 39df9813677590313c5f58fbcc7fd991d07a0a56cb9e9e090ee13525550da378 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REMwOjE5NzhCRjpDMzlGOkZEMkI6NkIwNDdDQUMiLCJ2aXNpdG9yX2lkIjoiODc0MjIwMjYxMzM0NjYzMDgyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 11ac44eccfb0d9145204acaa88b4a17fb7a6a31af9e7fa3b1d7f40f424ff7db8 |
| hovercard-subject-tag | issue:3008790624 |
| 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/6590/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e72b182a3e4e2e49a2d659dbe132dc126a0427d96654751ae994393ce544ad6/IfcOpenShell/IfcOpenShell/issues/6590 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e72b182a3e4e2e49a2d659dbe132dc126a0427d96654751ae994393ce544ad6/IfcOpenShell/IfcOpenShell/issues/6590 |
| og:image:alt | Bug Description os: Windows os_version: 10.0.26100 python_version: 3.11.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD blender_ve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Danish2727 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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