Title: Moving voided elements to other container triggers error · Issue #8017 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Moving voided elements to other container triggers error · Issue #8017 · IfcOpenShell/IfcOpenShell
X Title: Moving voided elements to other container triggers error · Issue #8017 · IfcOpenShell/IfcOpenShell
Description: Bug Description No response Attachments When moving an element with applied IfcOpeningElement to a different story shows an error, but the element changes container accordingly many thanks Debug and Error Output os: Windows os_version: 1...
Open Graph Description: Bug Description No response Attachments When moving an element with applied IfcOpeningElement to a different story shows an error, but the element changes container accordingly many thanks Debug an...
X Description: Bug Description No response Attachments When moving an element with applied IfcOpeningElement to a different story shows an error, but the element changes container accordingly many thanks Debug an...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8017
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Moving voided elements to other container triggers error","articleBody":"### Bug Description\n\n_No response_\n\n### Attachments\n\nWhen moving an element with applied IfcOpeningElement to a different story shows an error, but the element changes container accordingly\n\nmany thanks\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.19045\npython_version: 3.13.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD\nblender_version: 5.1.0\nbonsai_version: 0.8.6-alpha260426\nbonsai_commit_hash: 98c24b9\nbonsai_commit_date: 2026-04-26T21:28:02+02:00\nbonsai_git_branch: v0.8.0\nlast_actions: \n# operator: BIM_OT_add_element\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcOpeningElement\", \"predefined_type\": \"OPENING\", \"name\": \"Unnamed\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.assign_representation\n>>> {}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 143, \"Name\": \"Unnamed\"}}\n# ifcopenshell.api: feature.add_feature\n>>> {\"feature\": {\"cast_type\": \"entity_instance\", \"value\": 143, \"Name\": \"Unnamed\"}, \"element\": {\"cast_type\": \"entity_instance\", \"value\": 97, \"Name\": \"Wall\"}}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 143, \"Name\": \"Unnamed\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 1.6485557556152344], [0.0, 1.0, 0.0, -4.1961669921875e-05], [0.0, 0.0, 1.0, 1.5715765953063965], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 143, \"Name\": \"Unnamed\"}}\n# operator: BIM_OT_show_openings\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 143, \"Name\": \"Unnamed\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 1.6485557556152344], [0.0, 1.0, 0.0, -4.1961669921875e-05], [0.0, 0.0, 1.0, 1.5715765953063965], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 143, \"Name\": \"Unnamed\"}}\n# operator: BIM_OT_hotkey\n# operator: BIM_OT_edit_openings\n# operator: BIM_OT_assign_container\n# ifcopenshell.api: spatial.assign_container\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 97, \"Name\": \"Wall\"}], \"relating_structure\": {\"cast_type\": \"entity_instance\", \"value\": 63, \"Name\": \"S1\"}}\n# ifcopenshell.api: aggregate.unassign_object\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 97, \"Name\": \"Wall\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 97, \"Name\": \"Wall\"}}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\ifc.py\", line 523, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n File \"C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\spatial\\operator.py\", line 174, in _execute\n core.assign_container(\n ~~~~~~~~~~~~~~~~~~~~~^\n tool.Ifc, tool.Collector, tool.Spatial, container=container, objs=tool.Blender.get_selected_objects()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\core\\spatial.py\", line 70, in assign_container\n collector.assign(ifc.get_object(element))\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\collector.py\", line 32, in assign\n for users_collection in obj.users_collection:\n ^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'users_collection'\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: No IFC loaded\nifc_is_dirty: N/A\nifc: Unsaved\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.6-alpha260426\noriginating_system: IfcOpenShell 0.8.6-alpha260426\n```","author":{"url":"https://github.com/steverugi","@type":"Person","name":"steverugi"},"datePublished":"2026-04-28T13:51:10Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8017"}
| 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:96d1f7aa-a9f2-1979-6f85-ac53ab60458f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B11C:103741:6DBF6D:93D2C0:6B04AA43 |
| html-safe-nonce | 9c0d27f75df9e84b83bd61aba43fcb66a8611b672331c9b66e640961337df17e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTFDOjEwMzc0MTo2REJGNkQ6OTNEMkMwOjZCMDRBQTQzIiwidmlzaXRvcl9pZCI6IjcxMDUwNDE5NjcyMzA1MjgwNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b2083e9dd2d8936db096a1c298e49f827f02f6dd5b647107f4771357197dae02 |
| hovercard-subject-tag | issue:4343678441 |
| 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/8017/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60efe630304f11da4094aa4672a30264f82b786747d2946aafe2a929f4e281d0/IfcOpenShell/IfcOpenShell/issues/8017 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60efe630304f11da4094aa4672a30264f82b786747d2946aafe2a929f4e281d0/IfcOpenShell/IfcOpenShell/issues/8017 |
| og:image:alt | Bug Description No response Attachments When moving an element with applied IfcOpeningElement to a different story shows an error, but the element changes container accordingly many thanks Debug an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | steverugi |
| 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