Title: AttributeError: IfcCompositeProfileDef has no attribute 'OuterCurve' when rotating LAYER3 slab · Issue #7885 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: AttributeError: IfcCompositeProfileDef has no attribute 'OuterCurve' when rotating LAYER3 slab · Issue #7885 · IfcOpenShell/IfcOpenShell
X Title: AttributeError: IfcCompositeProfileDef has no attribute 'OuterCurve' when rotating LAYER3 slab · Issue #7885 · IfcOpenShell/IfcOpenShell
Description: Description Changing the x-rotation angle of a LAYER3 slab crashes with an AttributeError when the element's swept area is an IfcCompositeProfileDef. Steps to Reproduce Create or load a LAYER3 slab whose SweptArea is an IfcCompositeProfi...
Open Graph Description: Description Changing the x-rotation angle of a LAYER3 slab crashes with an AttributeError when the element's swept area is an IfcCompositeProfileDef. Steps to Reproduce Create or load a LAYER3 slab...
X Description: Description Changing the x-rotation angle of a LAYER3 slab crashes with an AttributeError when the element's swept area is an IfcCompositeProfileDef. Steps to Reproduce Create or load a LAYER3 ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7885
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: IfcCompositeProfileDef has no attribute 'OuterCurve' when rotating LAYER3 slab","articleBody":"\n### Description\n\nChanging the x-rotation angle of a LAYER3 slab crashes with an `AttributeError` when the element's swept area is an `IfcCompositeProfileDef`.\n\n### Steps to Reproduce\n\n1. Create or load a LAYER3 slab whose `SweptArea` is an `IfcCompositeProfileDef`.\n2. Attempt to rotate it (change x-angle).\n\n### Error\n\n```\nFile \"...bonsai/bim/module/model/wall.py\", line 471, in _execute\n coord_list = builder.get_polyline_coords(extrusion.SweptArea.OuterCurve)\nAttributeError: entity instance of type 'IFC4.IfcCompositeProfileDef' has no attribute 'OuterCurve'\n\n```\n\n### Expected Behaviour\n\nThe rotation applies successfully. `IfcCompositeProfileDef` holds sub-profiles in its `Profiles` attribute; each sub-profile has `OuterCurve`.\n\n### Actual Behaviour\n\nCrash — the code unconditionally accesses `SweptArea.OuterCurve`, which only exists on `IfcArbitraryClosedProfileDef`.\n\n```\nPython: Traceback (most recent call last):\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 523, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 471, in _execute\n coord_list = builder.get_polyline_coords(extrusion.SweptArea.OuterCurve)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 263, in __getattr__\n raise AttributeError(\nAttributeError: entity instance of type 'IFC4.IfcCompositeProfileDef' has no attribute 'OuterCurve'\n```\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-04-01T16:48:17Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7885"}
| 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:cfca146a-b781-9c2b-d79f-0410539cc908 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF40:E08F0:7E97EA:B189E0:6B0480A9 |
| html-safe-nonce | c3e0eaf08cb82bfa9c0f7643b406e3bd971532017f20deba3403517f7ebef5aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjQwOkUwOEYwOjdFOTdFQTpCMTg5RTA6NkIwNDgwQTkiLCJ2aXNpdG9yX2lkIjoiMTcyMzY2NDU4MjQ3MjE3MzIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 250e06b6d497a262c37b7bf31e7b0efd7421fa0da6830eac0dcdeb7694d176e6 |
| hovercard-subject-tag | issue:4188396528 |
| 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/7885/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e6d82c39697aa85fe406a5d8c67d4b8e34e89ee0b1879611c0473b5e9168160/IfcOpenShell/IfcOpenShell/issues/7885 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e6d82c39697aa85fe406a5d8c67d4b8e34e89ee0b1879611c0473b5e9168160/IfcOpenShell/IfcOpenShell/issues/7885 |
| og:image:alt | Description Changing the x-rotation angle of a LAYER3 slab crashes with an AttributeError when the element's swept area is an IfcCompositeProfileDef. Steps to Reproduce Create or load a LAYER3 slab... |
| 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 | 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