Title: Error appending type (invalid IfcSurfaceStyles) · Issue #6972 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error appending type (invalid IfcSurfaceStyles) · Issue #6972 · IfcOpenShell/IfcOpenShell
X Title: Error appending type (invalid IfcSurfaceStyles) · Issue #6972 · IfcOpenShell/IfcOpenShell
Description: Bug Description When i try to append import Stool (IfcFurntureType) from the following file I get the following error. https://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield/src/commit/4f1baf87e5cdd71b1a18aaef3250d05851b8a01a/...
Open Graph Description: Bug Description When i try to append import Stool (IfcFurntureType) from the following file I get the following error. https://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield/src/commit/4...
X Description: Bug Description When i try to append import Stool (IfcFurntureType) from the following file I get the following error. https://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield/src/commit/4...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6972
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error appending type (invalid IfcSurfaceStyles)","articleBody":"### Bug Description\n\nWhen i try to append import `Stool` (IfcFurntureType) from the following file I get the following error. \n\nhttps://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield/src/commit/4f1baf87e5cdd71b1a18aaef3250d05851b8a01a/Open/Models/Bonsai/Restaurant_Brookfield.ifc\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.19045\npython_version: 3.11.7\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel\nblender_version: 4.2.9 LTS\nbonsai_version: 0.0.0\nbonsai_commit_hash: b4452c0\nbonsai_commit_date: 2025-07-30T09:56:58+02:00\nlast_actions: \n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524832, \"Name\": \"Furniture\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524864, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524864, \"Name\": null}}\n# ifcopenshell.api: geometry.add_profile_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 24, \"Name\": null}, \"profile\": {\"cast_type\": \"entity_instance\", \"value\": 3493905, \"Name\": null}, \"depth\": \"2.1760253769429463\", \"cardinal_point\": \"5\", \"clippings\": \"[]\", \"placement_zx_axes\": \"((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))\"}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524832, \"Name\": \"Furniture\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524867, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524867, \"Name\": null}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524832, \"Name\": \"Furniture\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[-1.0, 1.0626477996156236e-12, -1.9311983123770915e-06, -83.32263946533203], [-1.9311983123770915e-06, -5.52335052361741e-07, 1.0, 276.5638732910156], [-4.02077392105786e-15, 1.0, 5.52335052361741e-07, -5.027260385759291e-07], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3524832, \"Name\": \"Furniture\"}}\n# operator: BIM_OT_override_object_delete\n# ifcopenshell.api: root.remove_product\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524913, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524913, \"Name\": null}}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524916, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 3524916, \"Name\": null}}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 3524888, \"Name\": \"EPset_Status\"}}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}]}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 3524902, \"Name\": \"EPset_Parametric\"}}\n# ifcopenshell.api: type.unassign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 3524881, \"Name\": \"Furniture\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 3493940, \"Name\": null}}\n# operator: BIM_OT_append_library_element\n# ifcopenshell.api: project.append_asset\n>>> {\"library\": \"\u003cifcopenshell.file.file object at 0x000001B81938D1D0>\", \"element\": {\"cast_type\": \"entity_instance\", \"value\": 3992359, \"Name\": \"Stool\"}, \"assume_asset_uniqueness_by_name\": \"True\"}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\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 \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 586, in _execute\n element = ifcopenshell.api.project.append_asset(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 255, in wrapper\n result = usecase(*args, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 143, in append_asset\n return usecase.execute()\n ^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 222, in execute\n return self.append_type_product()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 333, in append_type_product\n element = self.add_element(self.settings[\"element\"])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 392, in add_element\n self.check_inverses(element)\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 437, in check_inverses\n self.add_inverse_element(inverse)\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 476, in add_inverse_element\n new_attribute = self.add_element(attribute)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 400, in add_element\n self.check_inverses(subelement)\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 437, in check_inverses\n self.add_inverse_element(inverse)\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 487, in add_inverse_element\n item = self.add_element(item)\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 390, in add_element\n new = self.file_add(element)\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 739, in file_add\n attr_value = apply_to_array(attr_value, file_add_)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 720, in apply_to_array\n return tuple(apply_to_array(sub, func) for sub in arr)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 720, in \u003cgenexpr>\n return tuple(apply_to_array(sub, func) for sub in arr)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 721, in apply_to_array\n return func(arr)\n ^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 739, in file_add\n attr_value = apply_to_array(attr_value, file_add_)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 720, in apply_to_array\n return tuple(apply_to_array(sub, func) for sub in arr)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 720, in \u003cgenexpr>\n return tuple(apply_to_array(sub, func) for sub in arr)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 721, in apply_to_array\n return func(arr)\n ^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 737, in file_add\n tuple_type = get_tuple_type(attr_value)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\project\\append_asset.py\", line 712, in get_tuple_type\n tuple_ = tuple_[0]\n ~~~~~~^^^\nIndexError: tuple index out of range\n\nifc: The_Meadow.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.0.0\noriginating_system: Bonsai 0.8.4-alpha250730-b4452c0\n```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2025-08-01T12:29:06Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6972"}
| 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:ac6392d8-83fe-a412-c715-4d1dab8bf4f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C2C:3C07AF:6C51F6:94EB18:6B04777D |
| html-safe-nonce | 3bcfab99f261e8afb73cd534dc025d74761fd640e1c2b38c11f2378f616d4826 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzJDOjNDMDdBRjo2QzUxRjY6OTRFQjE4OjZCMDQ3NzdEIiwidmlzaXRvcl9pZCI6IjQ0MjQ4MjI5Nzk3MDAyMjU5MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cc92a158ebafb40091d638c60392db7748e51878f142edfc624dc865aeb3498f |
| hovercard-subject-tag | issue:3283763022 |
| 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/6972/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ffdb3db5618f4e6b251215a5a6eec384a8e22f943df1c99e2d164bf62dbe7039/IfcOpenShell/IfcOpenShell/issues/6972 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ffdb3db5618f4e6b251215a5a6eec384a8e22f943df1c99e2d164bf62dbe7039/IfcOpenShell/IfcOpenShell/issues/6972 |
| og:image:alt | Bug Description When i try to append import Stool (IfcFurntureType) from the following file I get the following error. https://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield/src/commit/4... |
| 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 | 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