Title: Trying to create a door with a custom width leads to an error · Issue #7117 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Trying to create a door with a custom width leads to an error · Issue #7117 · IfcOpenShell/IfcOpenShell
X Title: Trying to create a door with a custom width leads to an error · Issue #7117 · IfcOpenShell/IfcOpenShell
Description: Bug Description To reproduce, I created a new project, created an empty, changed its type to door type, went to geometry and materials, added a parametric geometry for it and changed the overall width. This gives the following crash: os:...
Open Graph Description: Bug Description To reproduce, I created a new project, created an empty, changed its type to door type, went to geometry and materials, added a parametric geometry for it and changed the overall wi...
X Description: Bug Description To reproduce, I created a new project, created an empty, changed its type to door type, went to geometry and materials, added a parametric geometry for it and changed the overall wi...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7117
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Trying to create a door with a custom width leads to an error","articleBody":"### Bug Description\n\nTo reproduce, I created a new project, created an empty, changed its type to door type, went to geometry and materials, added a parametric geometry for it and changed the overall width. This gives the following crash:\n\n```\nos: Darwin\nos_version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000\npython_version: 3.11.11\narchitecture: ('64bit', '')\nmachine: arm64\nprocessor: arm\nblender_version: 4.5.2 LTS\nbonsai_version: 0.8.3-post1\nbonsai_commit_hash: None\nbonsai_commit_date: None\nlast_actions: \n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 37, \"Name\": \"My Building\"}, \"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.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\": 37, \"Name\": \"My Building\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 43, \"Name\": \"My Storey\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 37, \"Name\": \"My Building\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 43, \"Name\": \"My Storey\"}, \"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.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\": 43, \"Name\": \"My Storey\"}}\n# operator: BIM_OT_assign_class\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcDoorType\", \"predefined_type\": \"DOOR\", \"name\": \"Empty\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 67, \"Name\": \"Empty\"}, \"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.0], [0.0, 0.0, 0.0, 1.0]]}}\n# operator: BIM_OT_edit_attributes\n# ifcopenshell.api: attribute.edit_attributes\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 67, \"Name\": \"Empty\"}, \"attributes\": \"{'GlobalId': '36meThx2T2fw8eD$I1iVA3', 'Name': 'Empty', 'Description': None, 'ApplicableOccurrence': None, 'Tag': None, 'ElementType': None, 'PredefinedType': 'NOTDEFINED', 'OperationType': 'NOTDEFINED', 'ParameterTakesPrecedence': None, 'UserDefinedOperationType': None}\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 67, \"Name\": \"Empty\"}}\n# operator: BIM_OT_add_door\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 67, \"Name\": \"Empty\"}, \"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\": 68, \"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}}')}\"}\n# ifcopenshell.api: geometry.add_door_representation\n>>> {\"operation_type\": \"SINGLE_SWING_LEFT\", \"overall_height\": \"2000.0\", \"overall_width\": \"899.9999761581421\", \"lining_properties\": \"{'LiningDepth': 50.00000074505806, 'LiningThickness': 50.00000074505806, 'LiningOffset': 0.0, 'LiningToPanelOffsetX': 25.00000037252903, 'LiningToPanelOffsetY': 25.00000037252903, 'TransomThickness': 0.0, 'TransomOffset': 1524.999976158142, 'CasingThickness': 75.00000298023224, 'CasingDepth': 4.999999888241291, 'ThresholdThickness': 25.00000037252903, 'ThresholdDepth': 100.00000149011612, 'ThresholdOffset': 0.0}\", \"panel_properties\": \"{'PanelDepth': 35.00000014901161, 'PanelWidth': 1.0, 'FrameDepth': 35.00000014901161, 'FrameThickness': 35.00000014901161}\", \"context\": {\"cast_type\": \"entity_instance\", \"value\": 22, \"Name\": null}}\nlast_error: Traceback (most recent call last):\n File \"/Users/bonsai/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/ifc.py\", line 488, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/bonsai/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/model/door.py\", line 554, in _execute\n self.add_door_on_object(obj)\n File \"/Users/bonsai/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/model/door.py\", line 548, in add_door_on_object\n update_door_modifier_representation(obj)\n File \"/Users/bonsai/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/model/door.py\", line 87, in update_door_modifier_representation\n tool.Model.replace_object_ifc_representation(profile, obj, elevation_representation)\n File \"/Users/bonsai/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/tool/model.py\", line 1024, in replace_object_ifc_representation\n assert isinstance(mesh, bpy.types.Mesh)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError\n\nifc: Unsaved\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.3-post1\noriginating_system: IfcOpenShell 0.8.3-post1\n```\n\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/shahn","@type":"Person","name":"shahn"},"datePublished":"2025-09-11T19:45:08Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7117"}
| 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:ab43b240-0dd8-4373-e06b-af297d65c1da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D22:194442:109F79:1629B6:6B04B117 |
| html-safe-nonce | a971a1a1caf7e512fca8440887250990a5415dff017358403acce85ab81965c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDIyOjE5NDQ0MjoxMDlGNzk6MTYyOUI2OjZCMDRCMTE3IiwidmlzaXRvcl9pZCI6Ijg4NjY5NTQ1ODEzMTg2MTEyMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9252faf99c70654e62e1105b2ff734cd39815fa31a4b6ac60dc556023eb5026 |
| hovercard-subject-tag | issue:3407839144 |
| 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/7117/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e83fea13271a0a0c445d524199bcc57d7edfda4de27740c752fd352db2357043/IfcOpenShell/IfcOpenShell/issues/7117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e83fea13271a0a0c445d524199bcc57d7edfda4de27740c752fd352db2357043/IfcOpenShell/IfcOpenShell/issues/7117 |
| og:image:alt | Bug Description To reproduce, I created a new project, created an empty, changed its type to door type, went to geometry and materials, added a parametric geometry for it and changed the overall wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shahn |
| 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 | 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