Title: Error when trying to create an aggregate from an object and an aggregate. · Issue #7154 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error when trying to create an aggregate from an object and an aggregate. · Issue #7154 · IfcOpenShell/IfcOpenShell
X Title: Error when trying to create an aggregate from an object and an aggregate. · Issue #7154 · IfcOpenShell/IfcOpenShell
Description: Bug Description Error when trying to create an aggregate from an object and an aggregate. And then it freezes up if you try to move the aggregate within. Untitled - Copy.ifc.txt Attachments 20250923_2008.mp4 Debug and Error Output os: Wi...
Open Graph Description: Bug Description Error when trying to create an aggregate from an object and an aggregate. And then it freezes up if you try to move the aggregate within. Untitled - Copy.ifc.txt Attachments 2025092...
X Description: Bug Description Error when trying to create an aggregate from an object and an aggregate. And then it freezes up if you try to move the aggregate within. Untitled - Copy.ifc.txt Attachments 2025092...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7154
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when trying to create an aggregate from an object and an aggregate.","articleBody":"### Bug Description\n\nError when trying to create an aggregate from an object and an aggregate. \nAnd then it freezes up if you try to move the aggregate within. \n\n[Untitled - Copy.ifc.txt](https://github.com/user-attachments/files/22504271/Untitled.-.Copy.ifc.txt)\n\n\n\n### Attachments\n\nhttps://github.com/user-attachments/assets/4e0be404-53d7-4821-ac25-044bba24e25c\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: 10a99ff\nbonsai_commit_date: 2025-09-22T20:12:24-05:00\nlast_actions: \n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3912236, \"Name\": \"Door\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3654967, \"Name\": \"Window\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3655388, \"Name\": \"Window\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3911732, \"Name\": \"Window\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 3915632, \"Name\": \"Default_Name\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 4077323, \"Name\": \"Default_Name\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 3915632, \"Name\": \"Default_Name\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 267674, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 4077342, \"Name\": null}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3915632, \"Name\": \"Default_Name\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[7.549790126404328e-08, -0.9999999999999974, 0.0, 231.28096512922124], [0.9999999999999974, 7.549790126404328e-08, 0.0, 640.6383063849498], [0.0, 0.0, 1.0, 7.822131860287482e-07], [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\": 3915632, \"Name\": \"Default_Name\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3916701, \"Name\": \"CurtainWall\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3911935, \"Name\": \"Window\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3911811, \"Name\": \"Window\"}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3916844, \"Name\": \"Window\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 4077323, \"Name\": \"Default_Name\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 3915632, \"Name\": \"Default_Name\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 4077323, \"Name\": \"Default_Name\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 267674, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3915644, \"Name\": null}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 4077323, \"Name\": \"Default_Name\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0000000000000002, 0.0, 0.0, 0.0], [0.0, 1.0000000000000002, 0.0, -1.1368683772161603e-13], [0.0, 0.0, 1.0, 3.944304526105059e-31], [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\": 4077323, \"Name\": \"Default_Name\"}}\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\\aggregate\\operator.py\", line 177, in _execute\n core.assign_object(\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\core\\aggregate.py\", line 48, in assign_object\n rel = ifc.run(\"aggregate.assign_object\", products=[ifc.get_entity(related_obj)], relating_object=relating_object)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\ifc.py\", line 60, in run\n return ifcopenshell.api.run(command, IfcStore.get_file(), **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 115, in run\n return usecase_function(ifc_file, should_run_listeners=should_run_listeners, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 275, in wrapper\n result = usecase(*args, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\aggregate\\assign_object.py\", line 152, in assign_object\n ifcopenshell.api.geometry.edit_object_placement(\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 275, in wrapper\n result = usecase(*args, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 67, in edit_object_placement\n return usecase.execute()\n ^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 110, in execute\n self.execute()\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 88, in execute\n relative_placement = self.get_relative_placement(placement_rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 176, in get_relative_placement\n relating_object_matrix = ifcopenshell.util.placement.get_local_placement(placement_rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 121, in get_local_placement\n parent = get_local_placement(rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 121, in get_local_placement\n parent = get_local_placement(rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 121, in get_local_placement\n parent = get_local_placement(rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n [Previous line repeated 974 more times]\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 118, in get_local_placement\n if (rel_to := placement.PlacementRelTo) is None:\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 214, in __getattr__\n return entity_instance.wrap_value(self.wrapped_data.get_argument(idx), self.wrapped_data.file)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 312, in wrap_value\n return entity_instance.walk(is_instance, wrap, v)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 300, in walk\n return g(value)\n ^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 307, in wrap\n return entity_instance(e, file)\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 177, in __init__\n e.file = file\n ^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 8127, in \u003clambda>\n __setattr__ = lambda self, name, value: _swig_setattr(self, entity_instance, name, value)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 71, in _swig_setattr\n return _swig_setattr_nondynamic(self, class_type, name, value, 0)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 63, in _swig_setattr_nondynamic\n object.__setattr__(self, name, value)\nRecursionError: maximum recursion depth exceeded while calling a Python object\n\nifc: Untitled.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.0.0\noriginating_system: Bonsai 0.8.4-alpha250922-10a99ff\n```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2025-09-24T01:10:49Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7154"}
| 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:9dcbde7a-aa48-16aa-9515-ebbb84c2dfe7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8C6:2366B8:6B41C1:8FD6E3:6B04A9CC |
| html-safe-nonce | 1c76a64f45ba53d901276a3414293914a3bf9e3ea8300ba239b34ed29807c07b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM2OjIzNjZCODo2QjQxQzE6OEZENkUzOjZCMDRBOUNDIiwidmlzaXRvcl9pZCI6IjE2NTY0NDg1NTE0Njg5NjgzOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6ef5d1b6aebf1d3726f43d8821d62829e49773bfd45105c39928ef758cf0059d |
| hovercard-subject-tag | issue:3447161529 |
| 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/7154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2be0f95514cbbccad5a3c85639779f5ca22fcc29cb38e501363111391aebd7b4/IfcOpenShell/IfcOpenShell/issues/7154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2be0f95514cbbccad5a3c85639779f5ca22fcc29cb38e501363111391aebd7b4/IfcOpenShell/IfcOpenShell/issues/7154 |
| og:image:alt | Bug Description Error when trying to create an aggregate from an object and an aggregate. And then it freezes up if you try to move the aggregate within. Untitled - Copy.ifc.txt Attachments 2025092... |
| 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 | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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