Title: Bonsai: Error when creating doortype · Issue #8081 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: Error when creating doortype · Issue #8081 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: Error when creating doortype · Issue #8081 · IfcOpenShell/IfcOpenShell
Description: Bug Description os: Windows os_version: 10.0.26200 python_version: 3.13.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 198 Stepping 2, GenuineIntel blender_version: 5.1.1 bonsai_version: 0.8.6-alp...
Open Graph Description: Bug Description os: Windows os_version: 10.0.26200 python_version: 3.13.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 198 Stepping 2, GenuineIntel blender_...
X Description: Bug Description os: Windows os_version: 10.0.26200 python_version: 3.13.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 198 Stepping 2, Genui...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8081
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Error when creating doortype","articleBody":"### Bug Description\n\n```\nos: Windows\nos_version: 10.0.26200\npython_version: 3.13.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 198 Stepping 2, GenuineIntel\nblender_version: 5.1.1\nbonsai_version: 0.8.6-alpha260515\nbonsai_commit_hash: e78ef86\nbonsai_commit_date: 2026-05-15T07:28:29-05:00\nbonsai_git_branch: v0.8.0\nlast_actions: \n# operator: BIM_OT_draw_occurrence\n# operator: BIM_OT_draw_occurrence\n# operator: BIM_OT_draw_occurrence\n# operator: BIM_OT_draw_occurrence\n# operator: BIM_OT_remove_type\n# ifcopenshell.api: root.remove_product\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 69352, \"Name\": \"Berkvens Verdi\"}}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 69352, \"Name\": \"Berkvens Verdi\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 69354, \"Name\": \"BBIM_Door\"}}\n# operator: BIM_OT_remove_type\n# ifcopenshell.api: root.remove_product\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 68814, \"Name\": \"Binnendeur\"}}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 68814, \"Name\": \"Binnendeur\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 68816, \"Name\": \"BBIM_Door\"}}\n# operator: BIM_OT_save_project\n# operator: BIM_OT_add_default_type\n# operator: BIM_OT_add_element\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcDoorType\", \"predefined_type\": \"DOOR\", \"name\": \"Unnamed\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# operator: BIM_OT_add_door\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 69372, \"Name\": \"Unnamed\"}, \"name\": \"BBIM_Door\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 69374, \"Name\": \"BBIM_Door\"}, \"properties\": \"{'Data': IfcText('{\\\"door_type\\\": \\\"SINGLE_SWING_LEFT\\\", \\\"overall_height\\\": 2000.0, \\\"overall_width\\\": 899.9999761581421, \\\"lining_properties\\\": {\\\"lining_depth\\\": 50.00000074505806, \\\"lining_thickness\\\": 50.00000074505806, \\\"lining_offset\\\": 0.0, \\\"lining_to_panel_offset_x\\\": 25.00000037252903, \\\"lining_to_panel_offset_y\\\": 25.00000037252903, \\\"transom_thickness\\\": 0.0, \\\"casing_thickness\\\": 75.00000298023224, \\\"casing_depth\\\": 4.999999888241291, \\\"threshold_thickness\\\": 25.00000037252903, \\\"threshold_depth\\\": 100.00000149011612, \\\"threshold_offset\\\": 0.0}, \\\"panel_properties\\\": {\\\"panel_depth\\\": 35.00000014901161, \\\"panel_width_ratio\\\": 1.0}}')}\"}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\pahlawan\\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\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 157, in _execute\n bpy.ops.bim.add_element()\n ~~~~~~~~~~~~~~~~~~~~~~~^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\pahlawan\\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\\pahlawan\\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\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\root\\operator.py\", line 767, in _execute\n bpy.ops.bim.add_door()\n ~~~~~~~~~~~~~~~~~~~~^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\pahlawan\\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\\pahlawan\\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\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\door.py\", line 565, in _execute\n self.add_door_on_object(obj)\n ~~~~~~~~~~~~~~~~~~~~~~~^^^^^\n File \"C:\\Users\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\door.py\", line 559, in add_door_on_object\n update_door_modifier_representation(obj)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^\n File \"C:\\Users\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\door.py\", line 97, in update_door_modifier_representation\n representation_data[\"part_of_product\"] = ifcopenshell.util.representation.get_part_of_product(element, body)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^\n File \"C:\\Users\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\ifcopenshell\\util\\representation.py\", line 443, in get_part_of_product\n if maps := [r for r in element.RepresentationMaps if r.MappedRepresentation.ContextOfItems == context]:\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: 'NoneType' object is not iterable\nLocation: C:\\Users\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\root\\operator.py:767\nLocation: C:\\Users\\pahlawan\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\model\\product.py:157\n\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: C:/Users/pahlawan/BiddingOsso_Verdiepingen.ifc\nifc_is_dirty: True\nifc: BiddingOsso_Verdiepingen.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.6-alpha260515\noriginating_system: Bonsai 0.8.6-alpha260515-e78ef86\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/PahlawanJoey","@type":"Person","name":"PahlawanJoey"},"datePublished":"2026-05-19T14:01:04Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8081"}
| 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:e0c8b94d-b94d-2bbf-6e2a-630c72fb61e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5F0:239CDA:491BDC:65069A:6B049EF9 |
| html-safe-nonce | 31c6a792a5d364ab29534710724f182fbdc7df3a355d9288e46efae87ee527b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUYwOjIzOUNEQTo0OTFCREM6NjUwNjlBOjZCMDQ5RUY5IiwidmlzaXRvcl9pZCI6Ijg0ODU4MjA0MDMyNDIyNzg2NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8b36a68aa6ab212da14af5d066fe48579652438c977fa995a135a6a39e7c678c |
| hovercard-subject-tag | issue:4478022936 |
| 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/8081/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92b03989a4281290a2b82a92a7bb42881cbc8a1c4ac5fcb11546ea34cdf92668/IfcOpenShell/IfcOpenShell/issues/8081 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92b03989a4281290a2b82a92a7bb42881cbc8a1c4ac5fcb11546ea34cdf92668/IfcOpenShell/IfcOpenShell/issues/8081 |
| og:image:alt | Bug Description os: Windows os_version: 10.0.26200 python_version: 3.13.9 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel64 Family 6 Model 198 Stepping 2, GenuineIntel blender_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PahlawanJoey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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