Title: Bonsai: Cannot add IfcSurfaceStyle to IFC from AVEVA E3D · Issue #7883 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: Cannot add IfcSurfaceStyle to IFC from AVEVA E3D · Issue #7883 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: Cannot add IfcSurfaceStyle to IFC from AVEVA E3D · Issue #7883 · IfcOpenShell/IfcOpenShell
Description: Bug Description I go to Geometry and Materials > Styles > IfcSurfaceStyles - add a new Then I select an element and press Assign Style to Selected => error I assume E3D creates some arcane variant of IFC that Bonasi is not happy about At...
Open Graph Description: Bug Description I go to Geometry and Materials > Styles > IfcSurfaceStyles - add a new Then I select an element and press Assign Style to Selected => error I assume E3D creates some arcane variant ...
X Description: Bug Description I go to Geometry and Materials > Styles > IfcSurfaceStyles - add a new Then I select an element and press Assign Style to Selected => error I assume E3D creates some arcane...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7883
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Cannot add IfcSurfaceStyle to IFC from AVEVA E3D","articleBody":"### Bug Description\n\nI go to Geometry and Materials > Styles > IfcSurfaceStyles - add a new\nThen I select an element and press Assign Style to Selected => error\n\nI assume E3D creates some arcane variant of IFC that Bonasi is not happy about\n\n### Attachments\n\n[PTO_Testlator.txt](https://github.com/user-attachments/files/26411571/PTO_Testlator.txt)\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.22631\npython_version: 3.11.7\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel\nblender_version: 4.2.1 LTS\nbonsai_version: 0.8.4\nbonsai_commit_hash: None\nbonsai_commit_date: None\nlast_actions: \n# operator: BIM_OT_add_presentation_style\n# ifcopenshell.api: style.add_style\n>>> {\"name\": \"Grejlator\"}\n# ifcopenshell.api: style.add_surface_style\n>>> {\"style\": {\"cast_type\": \"entity_instance\", \"value\": 135, \"Name\": \"Grejlator\"}, \"ifc_class\": \"IfcSurfaceStyleShading\", \"attributes\": \"{'SurfaceColour': {'Name': None, 'Red': 0.02717200107872486, 'Green': 0.006378030404448509, 'Blue': 1.0}}\"}\n# ifcopenshell.api: style.edit_surface_style\n>>> {\"style\": {\"cast_type\": \"entity_instance\", \"value\": 136, \"Name\": null}, \"attributes\": \"{'SurfaceColour': {'Name': None, 'Red': 0.02717200107872486, 'Green': 0.006378030404448509, 'Blue': 1.0}}\"}\n# operator: BIM_OT_assign_style_to_selected\n# operator: BIM_OT_assign_style_to_selected\n# ifcopenshell.api: style.assign_representation_styles\n>>> {\"shape_representation\": {\"cast_type\": \"entity_instance\", \"value\": 105, \"Name\": null}, \"styles\": [{\"cast_type\": \"entity_instance\", \"value\": 135, \"Name\": \"Grejlator\"}], \"should_use_presentation_style_assignment\": \"False\"}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\thh247\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 526, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\thh247\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\style\\operator.py\", line 1187, in _execute\n ifcopenshell.api.style.assign_representation_styles(\n File \"C:\\Users\\thh247\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 275, in wrapper\n result = usecase(*args, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\thh247\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\style\\assign_representation_styles.py\", line 112, in assign_representation_styles\n return usecase.execute()\n ^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\thh247\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\style\\assign_representation_styles.py\", line 162, in execute\n self.remove_same_type_styles(style_assignment, current_style_type, remove_item=True)\n File \"C:\\Users\\thh247\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\style\\assign_representation_styles.py\", line 199, in remove_same_type_styles\n styles = [s for s in style_item.Styles if s.is_a() != current_style_type]\n ^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'Styles'\n\nifc: PTO_Testlator.ifc\nschema: IFC4\npreprocessor_version: \noriginating_system: AVEVA E3D Design Design Mk3.1.10.0[Z31100-064] (WINDOWS-NT 0.0) (10 Sep 2025 : 11:59)\n```","author":{"url":"https://github.com/henlanafry","@type":"Person","name":"henlanafry"},"datePublished":"2026-04-01T13:54:07Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7883"}
| 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:48fd398f-8815-e628-9e6d-c47cba5c0b81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D6E:3F539E:809363:B0196C:6B047CA8 |
| html-safe-nonce | 809c7422fa8e142860df94e5eaa7dbe30d9722912a061cf4e67a862cf979ed89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDZFOjNGNTM5RTo4MDkzNjM6QjAxOTZDOjZCMDQ3Q0E4IiwidmlzaXRvcl9pZCI6IjcwMTQ2MDEzMDMyODAzNTI0MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2f5cad1290bbe809dfefa7b517c04d281a365a5106ce94b2e7af5c104d530060 |
| hovercard-subject-tag | issue:4187132013 |
| 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/7883/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34c12a228ae127e9c5c30f0c49bc812d5c671ae25b81126b173f843649f4e69f/IfcOpenShell/IfcOpenShell/issues/7883 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34c12a228ae127e9c5c30f0c49bc812d5c671ae25b81126b173f843649f4e69f/IfcOpenShell/IfcOpenShell/issues/7883 |
| og:image:alt | Bug Description I go to Geometry and Materials > Styles > IfcSurfaceStyles - add a new Then I select an element and press Assign Style to Selected => error I assume E3D creates some arcane variant ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henlanafry |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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