Title: Array data is not updated after removing an element (leading to issue importing IFC file) [2] · Issue #6547 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Array data is not updated after removing an element (leading to issue importing IFC file) [2] · Issue #6547 · IfcOpenShell/IfcOpenShell
X Title: Array data is not updated after removing an element (leading to issue importing IFC file) [2] · Issue #6547 · IfcOpenShell/IfcOpenShell
Description: Bug Description I was putting CCS/CCI and BIM7AA classifications on different types, and then saved the program. Now my whole project is missing, and there is an error message when I open the IFC project in Blender. Attachments Exercise7...
Open Graph Description: Bug Description I was putting CCS/CCI and BIM7AA classifications on different types, and then saved the program. Now my whole project is missing, and there is an error message when I open the IFC p...
X Description: Bug Description I was putting CCS/CCI and BIM7AA classifications on different types, and then saved the program. Now my whole project is missing, and there is an error message when I open the IFC p...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6547
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) [2]","articleBody":"### Bug Description\n\nI was putting CCS/CCI and BIM7AA classifications on different types, and then saved the program. Now my whole project is missing, and there is an error message when I open the IFC project in Blender.\n\n### Attachments\n\n[Exercise7_Group10NYKlassifikationer.txt](https://github.com/user-attachments/files/19740386/Exercise7_Group10NYKlassifikationer.txt)\n\n### Debug and Error Output\n\n```true\nos: Darwin\nos_version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:13 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8112\npython_version: 3.11.9\narchitecture: ('64bit', '')\nmachine: arm64\nprocessor: arm\nblender_version: 4.3.2\nbonsai_version: 0.8.1\nbonsai_commit_hash: None\nlast_actions: \nlast_error: Traceback (most recent call last):\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/project/operator.py\", line 929, in finish_loading_project\n bpy.ops.bim.load_project_elements()\n File \"/Applications/Blender.app/Contents/Resources/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 \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/project/operator.py\", line 1014, in execute\n ifc_importer.execute()\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/bim/import_ifc.py\", line 272, in execute\n self.setup_arrays()\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/bim/import_ifc.py\", line 1120, in setup_arrays\n tool.Blender.Modifier.Array.set_children_lock_state(element, i, True)\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/tool/blender.py\", line 1074, in set_children_lock_state\n for child_obj in children:\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/tool/blender.py\", line 1105, in get_children_objects\n child_obj = tool.Blender.get_object_from_guid(child_guid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/tool/blender.py\", line 821, in get_object_from_guid\n element = tool.Ifc.get().by_guid(guid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/ifcopenshell/file.py\", line 505, in by_guid\n return self[guid]\n ~~~~^^^^^^\n File \"/Users/sigridelarsen/Library/Application Support/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 \"/Users/sigridelarsen/Library/Application Support/Blender/4.3/extensions/.local/lib/python3.11/site-packages/ifcopenshell/ifcopenshell_wrapper.py\", line 5996, in by_guid\n return _ifcopenshell_wrapper.file_by_guid(self, guid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance with GlobalId '0jCaz4DXnBrfPaAtzv9Arj' not found\nLocation: /Applications/Blender.app/Contents/Resources/4.3/scripts/modules/bpy/ops.py:109\n\n\nifc: Exercise7_Group10NY.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.1\noriginating_system: Bonsai 0.8.1\n```","author":{"url":"https://github.com/sigridelarsen","@type":"Person","name":"sigridelarsen"},"datePublished":"2025-04-14T17:05:14Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6547"}
| 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:c388127d-bb81-1c9b-e27b-2dff3cacb465 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB2C:192237:75F987:A12971:6B0479B2 |
| html-safe-nonce | c09c933b2b52edd014247691702b4e6bbd08913d0d893c2e5adfab214192f732 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjJDOjE5MjIzNzo3NUY5ODc6QTEyOTcxOjZCMDQ3OUIyIiwidmlzaXRvcl9pZCI6IjQ1NzUyNTQwNDE3Mzg5MDE5MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4ee8587aea95fba440fe33243940d278be2d13f95bccb7d21390733cc891b9ec |
| hovercard-subject-tag | issue:2993656625 |
| 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/6547/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8e994e5572b63c19906b4872531a823596070de8b3028aab364114a504a0d63/IfcOpenShell/IfcOpenShell/issues/6547 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8e994e5572b63c19906b4872531a823596070de8b3028aab364114a504a0d63/IfcOpenShell/IfcOpenShell/issues/6547 |
| og:image:alt | Bug Description I was putting CCS/CCI and BIM7AA classifications on different types, and then saved the program. Now my whole project is missing, and there is an error message when I open the IFC p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sigridelarsen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | canary-2 |
| 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