Title: AttributeError: IfcStructuralCurveMember has no attribute 'ConnectedTo' when assigning an IfcMaterialProfileSet (IFC4) · Issue #10026 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: AttributeError: IfcStructuralCurveMember has no attribute 'ConnectedTo' when assigning an IfcMaterialProfileSet (IFC4) · Issue #10026 · IfcOpenShell/IfcOpenShell
X Title: AttributeError: IfcStructuralCurveMember has no attribute 'ConnectedTo' when assigning an IfcMaterialProfileSet (IFC4) · Issue #10026 · IfcOpenShell/IfcOpenShell
Description: Bug Description Description: When saving after assigning an IfcMaterialProfileSet to an IfcStructuralCurveMember in an IFC4 model, the operator fails with an AttributeError. The IFC is changed, but the Blender state is left stale (Blende...
Open Graph Description: Bug Description Description: When saving after assigning an IfcMaterialProfileSet to an IfcStructuralCurveMember in an IFC4 model, the operator fails with an AttributeError. The IFC is changed, but...
X Description: Bug Description Description: When saving after assigning an IfcMaterialProfileSet to an IfcStructuralCurveMember in an IFC4 model, the operator fails with an AttributeError. The IFC is changed, but...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10026
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: IfcStructuralCurveMember has no attribute 'ConnectedTo' when assigning an IfcMaterialProfileSet (IFC4)","articleBody":"### Bug Description\n\n**Description:**\n\nWhen saving after assigning an `IfcMaterialProfileSet` to an `IfcStructuralCurveMember` in an IFC4 model, the operator fails with an `AttributeError`. The IFC is changed, but the Blender state is left stale (Blender warns \"Operation partially completed\", requires Ctrl+Z to restore).\n\nThis also occurs in the latest BonsaiPR version.\n\n**Steps to reproduce:**\n\n1. Open the attached `test.ifc` (IFC4 model containing an `IfcStructuralCurveMember`).\n2. Assign an `IfcMaterialProfileSet` to the `IfcStructuralCurveMember` (\"Edit Assigned Material\").\n3. Save.\n\n**Expected behavior:**\n\nThe assignment is saved without error.\n\n**Actual behavior:**\n\n`bonsai/bim/module/model/profile.py`, line 462 in `recreate_profile`, iterates over `element.ConnectedTo`. In IFC4 the inverse attribute was renamed: `ConnectedTo` (IFC2X3) → `ConnectedBy` (IFC4). Accessing `ConnectedTo` raises:\n\n[test.ifc.txt](https://github.com/user-attachments/files/33737170/test.ifc.txt)\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/balrobs","@type":"Person","name":"balrobs"},"datePublished":"2026-10-20T19:54:11Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10026"}
| 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:437b6899-a6a9-3b01-97e5-493e44359c57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4A4:2DB625:63FF88:8BF56A:6B047818 |
| html-safe-nonce | d7aecfb4c0fe2aa6d13d4ea7e785f2bb62b9a54bfd60fbf7adc0c0d414804561 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEE0OjJEQjYyNTo2M0ZGODg6OEJGNTZBOjZCMDQ3ODE4IiwidmlzaXRvcl9pZCI6IjI5NTUxODE3ODYyOTgzNDk1OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7bfe400875ff6ebb0a70b529d5dfe579e4aed2afc8af66a6fde9f89296d99229 |
| hovercard-subject-tag | issue:5948600111 |
| 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/10026/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f8662bdabdfb5327096b4aa7fb99808e207a325ad67c4d17e644e7fdeeea806/IfcOpenShell/IfcOpenShell/issues/10026 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f8662bdabdfb5327096b4aa7fb99808e207a325ad67c4d17e644e7fdeeea806/IfcOpenShell/IfcOpenShell/issues/10026 |
| og:image:alt | Bug Description Description: When saving after assigning an IfcMaterialProfileSet to an IfcStructuralCurveMember in an IFC4 model, the operator fails with an AttributeError. The IFC is changed, but... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | balrobs |
| 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