Title: self.mesh.materials.append(self.styles[surface_style[0].id()]) KeyError · Issue #4671 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: self.mesh.materials.append(self.styles[surface_style[0].id()]) KeyError · Issue #4671 · IfcOpenShell/IfcOpenShell
X Title: self.mesh.materials.append(self.styles[surface_style[0].id()]) KeyError · Issue #4671 · IfcOpenShell/IfcOpenShell
Description: Python: Traceback (most recent call last): File "C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\bim\ifc.py", line 360, in execute_ifc_operator result = getattr(operator, "_execute")(context) ^^^^^...
Open Graph Description: Python: Traceback (most recent call last): File "C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\bim\ifc.py", line 360, in execute_ifc_operator result = geta...
X Description: Python: Traceback (most recent call last): File "C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\bim\ifc.py", line 360, in execute_ifc_operator res...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/4671
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"self.mesh.materials.append(self.styles[surface_style[0].id()]) KeyError","articleBody":"```\r\nPython: Traceback (most recent call last):\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\ifc.py\", line 360, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\module\\model\\workspace.py\", line 591, in _execute\r\n getattr(self, f\"hotkey_{self.hotkey}\")()\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\module\\model\\workspace.py\", line 734, in hotkey_S_G\r\n bpy.ops.bim.recalculate_wall()\r\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.1\\4.1\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\r\n ret = _op_call(self.idname_py(), kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nRuntimeError: Error: Python: Traceback (most recent call last):\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\ifc.py\", line 360, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\module\\model\\wall.py\", line 210, in _execute\r\n DumbWallRecalculator().recalculate(context.selected_objects)\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\module\\model\\wall.py\", line 434, in recalculate\r\n joiner.recreate_wall(element, wall)\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\module\\model\\wall.py\", line 1252, in recreate_wall\r\n blenderbim.core.geometry.switch_representation(\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\core\\geometry.py\", line 133, in switch_representation\r\n new_repr_data = geometry.import_representation(obj, representation, apply_openings=apply_openings)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\tool\\geometry.py\", line 540, in import_representation\r\n ifc_importer.material_creator.create(element, obj, mesh)\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\import_ifc.py\", line 68, in create\r\n self.add_default_material(element)\r\n File \"C:\\Users\\Sahru\\AppData\\Roaming\\Blender Foundation\\Blender\\4.1\\scripts\\addons\\blenderbim\\bim\\import_ifc.py\", line 84, in add_default_material\r\n self.mesh.materials.append(self.styles[surface_style[0].id()])\r\n ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\r\nKeyError: 9281\r\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.1\\4.1\\scripts\\modules\\bpy\\ops.py:109\r\n```\r\n","author":{"url":"https://github.com/blenderarc","@type":"Person","name":"blenderarc"},"datePublished":"2024-05-14T15:31:30Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4671"}
| 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:a7286332-a7df-cdfd-8c5d-654c227fcfd5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECC8:4818E:5FE9A1:83A5A2:6B0475AB |
| html-safe-nonce | c8fecbaf7de088f00f7be631465200270287348b087a3e2b18b5c1d858b44765 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0M4OjQ4MThFOjVGRTlBMTo4M0E1QTI6NkIwNDc1QUIiLCJ2aXNpdG9yX2lkIjoiMTQwOTA1OTEyOTk4MzI3NzIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | df30a6815b48d3b75b3a83b71b95f71ba10344d4074925749bd74d3bac879866 |
| hovercard-subject-tag | issue:2295794869 |
| 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/4671/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a20e96d8e680ba547f23db4e49be98b8f829fdacbcdcbbee07af7b6bab1eb63d/IfcOpenShell/IfcOpenShell/issues/4671 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a20e96d8e680ba547f23db4e49be98b8f829fdacbcdcbbee07af7b6bab1eb63d/IfcOpenShell/IfcOpenShell/issues/4671 |
| og:image:alt | Python: Traceback (most recent call last): File "C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\bim\ifc.py", line 360, in execute_ifc_operator result = geta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blenderarc |
| 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