Title: Link with query · Issue #8350 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Link with query · Issue #8350 · IfcOpenShell/IfcOpenShell
X Title: Link with query · Issue #8350 · IfcOpenShell/IfcOpenShell
Description: Bug Description when I use Link IFC and try to query it an error is returned (see below) I did use it no long ago and it was working fine thaks Attachments Debug and Error Output os: Windows os_version: 10.0.19045 python_version: 3.13.9 ...
Open Graph Description: Bug Description when I use Link IFC and try to query it an error is returned (see below) I did use it no long ago and it was working fine thaks Attachments Debug and Error Output os: Windows os_ver...
X Description: Bug Description when I use Link IFC and try to query it an error is returned (see below) I did use it no long ago and it was working fine thaks Attachments Debug and Error Output os: Windows os_ver...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8350
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Link with query","articleBody":"### Bug Description\n\nwhen I use Link IFC and try to query it an error is returned (see below)\nI did use it no long ago and it was working fine\nthaks\n\n### Attachments\n\n\u003cimg width=\"1036\" height=\"237\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7cae5298-b669-494e-b332-ccbc99632638\" />\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-alpha260706\nbonsai_commit_hash: 49de7db\nbonsai_commit_date: 2026-07-06T13:24:34+02:00\nbonsai_git_branch: v0.8.0\nlast_actions: \n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, -0.20874300599098206], [0.0, 1.0, 0.0, 8.908767700195312], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}}\n# ifcopenshell.api: geometry.add_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 11, \"Name\": null}, \"blender_object\": \"\u003cbpy_struct, Object(\\\"IfcAnnotation/Elevation\\\") at 0x000001F11C344808>\", \"geometry\": \"\u003cbpy_struct, Mesh(\\\"Mesh.001\\\") at 0x000001F1288D8B88>\", \"coordinate_offset\": \"None\", \"total_items\": \"1\", \"should_force_faceted_brep\": \"False\", \"should_force_triangulation\": \"False\", \"should_generate_uvs\": \"False\", \"ifc_representation_class\": \"\", \"profile_set_usage\": \"None\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}}\n# ifcopenshell.api: style.assign_representation_styles\n>>> {\"shape_representation\": {\"cast_type\": \"entity_instance\", \"value\": 612, \"Name\": null}, \"styles\": \"[]\", \"should_use_presentation_style_assignment\": \"False\"}\n# ifcopenshell.api: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 612, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}}\n# ifcopenshell.api: spatial.assign_container\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}], \"relating_structure\": {\"cast_type\": \"entity_instance\", \"value\": 27, \"Name\": \"07-22\"}}\n# ifcopenshell.api: aggregate.unassign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 501, \"Name\": null}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 526, \"Name\": \"Elevation\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, -0.20874300599098206], [0.0, 1.0, 0.0, 8.908767700195312], [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\": 526, \"Name\": \"Elevation\"}}\n# operator: BIM_OT_save_project\n# operator: BIM_OT_save_project\n# operator: BIM_OT_link_ifc\n# ifcopenshell.api: document.add_information\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: document.add_reference\n>>> {\"information\": {\"cast_type\": \"entity_instance\", \"value\": 1568, \"Name\": \"BC002.ifc\"}}\n# operator: BIM_OT_load_link\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 562, 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\\project\\operator.py\", line 1426, in _execute\n bpy.ops.bim.load_link(link_index=-1, use_cache=self.use_cache, query=self.query)\n ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: 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\\tool\\ifc.py\", line 367, in execute\n IfcStore.execute_ifc_operator(self, context)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^\n File \"C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\ifc.py\", line 562, 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\\project\\operator.py\", line 1506, in _execute\n return self.link_ifc()\n ~~~~~~~~~~~~~^^\n File \"C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1552, in link_ifc\n os.remove(blend_filepath)\n ~~~~~~~~~^^^^^^^^^^^^^^^^\nFileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\\\Users\\\\steve\\\\Dropbox\\\\BIM\\\\Projects\\\\TEAM\\\\Culvert qto\\\\models\\\\model2\\\\BC002.ifc.cache.blend'\nLocation: C:\\Users\\steve\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\project\\operator.py:1426\n\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: C:/Users/steve/Dropbox/BIM/Projects/TEAM/Culvert qto/models/model1/BC001.ifc\nifc_is_dirty: True\nifc: BC001.ifc\nschema: IFC4X3\npreprocessor_version: IfcOpenShell 0.8.6-alpha260702\noriginating_system: Bonsai 0.8.6-alpha260702-00ec587\n```","author":{"url":"https://github.com/steverugi","@type":"Person","name":"steverugi"},"datePublished":"2026-07-07T10:54:56Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8350"}
| 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:8ed3ae13-ef9c-438f-cc1c-9c6954450cb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DED4:3C88CA:71680C:9BA9B4:6B04781C |
| html-safe-nonce | e1f8ec3ea4d02b5c3407db65b755c2afdcd974b6a8ffd03e3af715f9cf6a15d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUQ0OjNDODhDQTo3MTY4MEM6OUJBOUI0OjZCMDQ3ODFDIiwidmlzaXRvcl9pZCI6IjY3ODEyMjUyMTQzNDYwMzMxODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 406780e53006f33a50be986bc1e40cbe13f8cfa78744bfff79c3e0d794205933 |
| hovercard-subject-tag | issue:4827786552 |
| 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/8350/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dda812d79229d334168447d94c1803038bd0f18f6a1f014e582a30e32ec37596/IfcOpenShell/IfcOpenShell/issues/8350 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dda812d79229d334168447d94c1803038bd0f18f6a1f014e582a30e32ec37596/IfcOpenShell/IfcOpenShell/issues/8350 |
| og:image:alt | Bug Description when I use Link IFC and try to query it an error is returned (see below) I did use it no long ago and it was working fine thaks Attachments Debug and Error Output os: Windows os_ver... |
| 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 | 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 | 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