Title: [Bonsai] Spatial Container field missing for newly created IFC objects; objects reset to 0,0,0 after reopening · Issue #9270 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: [Bonsai] Spatial Container field missing for newly created IFC objects; objects reset to 0,0,0 after reopening · Issue #9270 · IfcOpenShell/IfcOpenShell
X Title: [Bonsai] Spatial Container field missing for newly created IFC objects; objects reset to 0,0,0 after reopening · Issue #9270 · IfcOpenShell/IfcOpenShell
Description: Bug Description After adding mesh (cube or plane) and assigning IFC class (e.g., walls, slabs), the "Spatial Container" field is completely missing from the Object Information panel, making it impossible to properly assign objects to sto...
Open Graph Description: Bug Description After adding mesh (cube or plane) and assigning IFC class (e.g., walls, slabs), the "Spatial Container" field is completely missing from the Object Information panel, making it impo...
X Description: Bug Description After adding mesh (cube or plane) and assigning IFC class (e.g., walls, slabs), the "Spatial Container" field is completely missing from the Object Information panel, maki...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9270
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bonsai] Spatial Container field missing for newly created IFC objects; objects reset to 0,0,0 after reopening","articleBody":"### Bug Description\n\nAfter adding mesh (cube or plane) and assigning IFC class (e.g., walls, slabs), the **\"Spatial Container\"** field is completely missing from the **Object Information** panel, making it impossible to properly assign objects to storeys using the standard workflow.\n\nThis issue occurs in my project, but when I open an IFC file downloaded from the internet, the \"Spatial Container\" field appears normally.\n\n## Steps to Reproduce\n1. Open Blender 5.2.0 LTS with Bonsai add-on enabled.\n2. Create a new IFC project (`File → New IFC Project`).\n3. Add a building storey (`Add Storey` button in BIM panel).\n4. Create a simple object (e.g., a cube) and convert it to an IFC element (`Convert to IFC` → select `IfcWall` or `IfcSlab`).\n5. Try to assign the object to the storey:\n - Expected: \"Spatial Container\" field appears in Object Information panel.\n - Actual: No \"Spatial Container\" field is visible at all.\n6. Save the `.blend` file.\n7. Close and reopen Blender.\n8. Open the saved project.\n9. The object is now at position (0,0,0).\n\n## Expected Behavior\n- The **\"Spatial Container\"** field should be visible in the **Object Information** panel for any object that is a valid IFC element.\n- Objects should retain their assigned position after saving and reopening the project.\n- The standard workflow (select container → shift+select object → use pencil icon) should work as documented.\n\n## Actual Behavior\n- No \"Spatial Container\" field appears in Object Information panel.\n- Objects reset to (0,0,0) after reopening.\n- The field only appears when opening IFC files from external sources.\n- Using `Ctrl+A → All Transforms` and other suggested fixes does not resolve the issue.\n\n## Environment\n- **Bonsai version**: 0.8.5\n- **Blender version**: 5.2.0 LTS\n- **Operating System**: Ubuntu 25.10\n- **Python version**: 3.13.7\n\n## Attempted Fixes\n- ✅ `Ctrl+A` → `All Transforms`\n- ✅ Converting object to IFC class (IfcWall, IfcSlab, etc.)\n- ✅ Selecting storey first, then object with Shift, then clicking pencil icon (no pencil icon appears)\n- ✅ Reinstalling Bonsai add-on\n- ✅ Saving as `.ifc` and re-importing\n- ❌ None of these resolved the issue\n\n## Additional Context\nThis does **not** occur with IFC files downloaded from the internet. The \"Spatial Container\" field appears correctly in those cases, suggesting the issue may be specific to how Bonsai initializes new projects or handles newly created objects in certain versions.\n\nThe Outliner shows the storeys (e.g., `IfcBuildingStorey/1`, `IfcBuildingStorey/2`, etc.), but objects listed under them do not have proper spatial relationships saved.\n\nScreenshot:\n\u003cimg width=\"1920\" height=\"1080\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/383a7a41-2506-40f1-b604-a6e0be47faf6\" />\n\n### Attachments\n\nifc file:\n[test (Kopia).txt](https://github.com/user-attachments/files/30761762/test.Kopia.txt)\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/msovah","@type":"Person","name":"msovah"},"datePublished":"2026-08-05T21:13:41Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9270"}
| 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:ece1de75-e595-3b52-6d6a-2601faedcb9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F24:20D380:9C528A:D52A1F:6B048035 |
| html-safe-nonce | db87719abbc455abcf7c332fdf068d138de1f4fe48598aca84e6d404d9cc0acf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjI0OjIwRDM4MDo5QzUyOEE6RDUyQTFGOjZCMDQ4MDM1IiwidmlzaXRvcl9pZCI6IjI4NTE4OTAwMDAzNzc5NzA3NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 44b6e3a2645afdab6006041cb01923ae73ea0d20afc4c47ca6dbcdded9ed631d |
| hovercard-subject-tag | issue:5075270600 |
| 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/9270/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da87ec92fce7e98588f779872a1f645c7e45c0852702d4b441e83406e3a8d6c8/IfcOpenShell/IfcOpenShell/issues/9270 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da87ec92fce7e98588f779872a1f645c7e45c0852702d4b441e83406e3a8d6c8/IfcOpenShell/IfcOpenShell/issues/9270 |
| og:image:alt | Bug Description After adding mesh (cube or plane) and assigning IFC class (e.g., walls, slabs), the "Spatial Container" field is completely missing from the Object Information panel, making it impo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msovah |
| 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