Title: Error thrown when adding reference images to plan view · Issue #8130 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error thrown when adding reference images to plan view · Issue #8130 · IfcOpenShell/IfcOpenShell
X Title: Error thrown when adding reference images to plan view · Issue #8130 · IfcOpenShell/IfcOpenShell
Description: Bug Description Create a new plan view, activate it. Select annotation tool, select type of image. Click add, see than Bonsai throws an error. Following the video in this linked comment reproduces the error for me: #7070 (comment) Attach...
Open Graph Description: Bug Description Create a new plan view, activate it. Select annotation tool, select type of image. Click add, see than Bonsai throws an error. Following the video in this linked comment reproduces ...
X Description: Bug Description Create a new plan view, activate it. Select annotation tool, select type of image. Click add, see than Bonsai throws an error. Following the video in this linked comment reproduces ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8130
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error thrown when adding reference images to plan view","articleBody":"### Bug Description\n\n1. Create a new plan view, activate it.\n2. Select annotation tool, select type of `image`.\n3. Click add, see than Bonsai throws an error.\n\nFollowing the video in this linked comment reproduces the error for me:\nhttps://github.com/IfcOpenShell/IfcOpenShell/issues/7070#issuecomment-3238134343\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nos: Linux\nos_version: #1 SMP PREEMPT_DYNAMIC Fri May 15 14:03:46 UTC 2026\npython_version: 3.13.9\narchitecture: ('64bit', 'ELF')\nmachine: x86_64\nprocessor: \nblender_version: 5.1.2\nbonsai_version: 0.8.5\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: \n# ifcopenshell.api: geometry.add_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 25, \"Name\": null}, \"blender_object\": \"\u003cbpy_struct, Object(\\\"IfcAnnotation/IMAGE\\\") at 0x7f04172ccf08>\", \"geometry\": \"\u003cbpy_struct, Mesh(\\\"IMAGE\\\") at 0x7f03ab260b88>\", \"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: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 257, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}}\n# ifcopenshell.api: group.assign_group\n>>> {\"group\": {\"cast_type\": \"entity_instance\", \"value\": 75, \"Name\": \"PLAN_VIEW\"}, \"products\": [{\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 76, \"Name\": null}}\n# operator: BIM_OT_load_drawings\n# operator: BIM_OT_activate_drawing\n# operator: BIM_OT_activate_drawing_style\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 77, \"Name\": \"EPset_Drawing\"}, \"properties\": \"{'CurrentShadingStyle': 'Blender Default'}\"}\n# operator: BIM_OT_annotation_hotkey\n# operator: BIM_OT_add_annotation\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcAnnotation\", \"predefined_type\": \"IMAGE\", \"name\": \"IMAGE\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}, \"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.6768742799758911], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}}\n# ifcopenshell.api: geometry.add_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 25, \"Name\": null}, \"blender_object\": \"\u003cbpy_struct, Object(\\\"IfcAnnotation/IMAGE\\\") at 0x7f039276cf08>\", \"geometry\": \"\u003cbpy_struct, Mesh(\\\"IMAGE\\\") at 0x7f0394e9a088>\", \"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: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 257, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}}\n# ifcopenshell.api: group.assign_group\n>>> {\"group\": {\"cast_type\": \"entity_instance\", \"value\": 75, \"Name\": \"PLAN_VIEW\"}, \"products\": [{\"cast_type\": \"entity_instance\", \"value\": 248, \"Name\": \"IMAGE\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 76, \"Name\": null}}\nlast_error: Traceback (most recent call last):\n File \"/home/tim/.var/app/org.blender.Blender/config/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 \"/home/tim/.var/app/org.blender.Blender/config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/drawing/workspace.py\", line 290, in _execute\n getattr(self, f\"hotkey_{self.hotkey}\")()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"/home/tim/.var/app/org.blender.Blender/config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/drawing/workspace.py\", line 335, in hotkey_S_A\n bpy.ops.bim.add_annotation()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"/home/tim/.var/app/org.blender.Blender/config/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 \"/home/tim/.var/app/org.blender.Blender/config/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 \"/home/tim/.var/app/org.blender.Blender/config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/drawing/operator.py\", line 1762, in _execute\n bpy.ops.bim.add_reference_image(\"INVOKE_DEFAULT\", existing_object_by_name=obj.name)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: Converting py args to operator properties:: keyword \"existing_object_by_name\" unrecognized\nLocation: /home/tim/.var/app/org.blender.Blender/config/blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/drawing/workspace.py:335\n\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: /home/tim/code/bonsai-bim-dimensioning-test/bonsai-bim-dimensioning-test.ifc\nifc_is_dirty: True\nifc: bonsai-bim-dimensioning-test.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.5\noriginating_system: Bonsai 0.8.5\n```","author":{"url":"https://github.com/Georift","@type":"Person","name":"Georift"},"datePublished":"2026-05-31T08:43:58Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8130"}
| 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:a8b74d93-30cd-6768-1aaf-9b378ed22ff8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96F8:73AE1:807D08:AC8C61:6B04A8AF |
| html-safe-nonce | b8ea269d6e3cfbb3f25381ecf4870cc334c499bb72ac3ef83da13b662071635e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkY4OjczQUUxOjgwN0QwODpBQzhDNjE6NkIwNEE4QUYiLCJ2aXNpdG9yX2lkIjoiNjM2MDk3NTA5ODM2Mjc2NzUzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 11e0e9c90e8709333fdf538205bc8b656b5f101464909be93f1696b90f1dafa3 |
| hovercard-subject-tag | issue:4557047965 |
| 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/8130/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3d9b47ab17ce8c749dca2853028a05427f108fd9a884797d87968816249204c7/IfcOpenShell/IfcOpenShell/issues/8130 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3d9b47ab17ce8c749dca2853028a05427f108fd9a884797d87968816249204c7/IfcOpenShell/IfcOpenShell/issues/8130 |
| og:image:alt | Bug Description Create a new plan view, activate it. Select annotation tool, select type of image. Click add, see than Bonsai throws an error. Following the video in this linked comment reproduces ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Georift |
| 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