Title: Copying or removing a structural item shares or orphans its applied loads · Issue #9959 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Copying or removing a structural item shares or orphans its applied loads · Issue #9959 · IfcOpenShell/IfcOpenShell
X Title: Copying or removing a structural item shares or orphans its applied loads · Issue #9959 · IfcOpenShell/IfcOpenShell
Description: ifcopenshell.api.root.copy_class and remove_product mishandle a structural item's applied loads, the IfcRelConnectsStructuralActivity relationships between an IfcStructuralItem and its IfcStructuralActivity. Copying shares the loads. cop...
Open Graph Description: ifcopenshell.api.root.copy_class and remove_product mishandle a structural item's applied loads, the IfcRelConnectsStructuralActivity relationships between an IfcStructuralItem and its IfcStructura...
X Description: ifcopenshell.api.root.copy_class and remove_product mishandle a structural item's applied loads, the IfcRelConnectsStructuralActivity relationships between an IfcStructuralItem and its IfcStruc...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9959
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copying or removing a structural item shares or orphans its applied loads","articleBody":"`ifcopenshell.api.root.copy_class` and `remove_product` mishandle a structural item's applied\nloads, the `IfcRelConnectsStructuralActivity` relationships between an `IfcStructuralItem` and its\n`IfcStructuralActivity`.\n\n**Copying shares the loads.** `copy_class` copies every relationship the product takes part in,\nswapping in the copy. For `IfcRelConnectsStructuralActivity` that leaves the copy connected to the\noriginal's activities through a second relationship, so the same applied load now acts on both\nitems. An activity acts on one item; the copy should have none.\n\n**Removing orphans the relationships.** `remove_product` has no case for\n`IfcRelConnectsStructuralActivity`, so removing a structural item leaves its relationships with no\n`RelatingElement`.\n\nTo reproduce, in IFC4:\n\n```python\npoint = ifcopenshell.api.root.create_entity(f, ifc_class=\"IfcStructuralPointConnection\")\nload = ifcopenshell.api.structural.add_structural_load(f, ifc_class=\"IfcStructuralLoadSingleForce\")\nifcopenshell.api.structural.add_structural_activity(\n f, applied_load=load, structural_member=point, ifc_class=\"IfcStructuralPointAction\"\n)\ncopy = ifcopenshell.api.root.copy_class(f, product=point)\ncopy.AssignedStructuralActivity # shares the original's activity\nifcopenshell.api.root.remove_product(f, product=copy)\nf.by_type(\"IfcRelConnectsStructuralActivity\") # one now has no RelatingElement\n```\n\nIn Bonsai this shows up when duplicating a structural point connection (Shift+D): the copy carries\nthe original's loads, so load diagrams and moment calculations count forces twice.\n\nRelated: #9868 adds `structural.remove_structural_activity`, which removes these relationships\nitself when an activity is removed, working around the second half for that case.\n\n*This issue was prepared with the assistance of an AI coding tool (Claude Code), and reviewed by me.*\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-10-15T17:20:47Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9959"}
| 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:545ff778-d179-9524-7427-0d064a9fb15a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B30A:321110:23F825:32D08C:6B0468F5 |
| html-safe-nonce | c011bc804d243ba4f926688c913e803680a14fd0a201c2af1d0e85b8dc490d64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzBBOjMyMTExMDoyM0Y4MjU6MzJEMDhDOjZCMDQ2OEY1IiwidmlzaXRvcl9pZCI6Ijc5MzI3NDgwODQzMjc3NzAzNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4e276087fc3a849e385b1f411d83fd4dd98ca245b1a22ae7d14a2c12c0aae1cd |
| hovercard-subject-tag | issue:5870775737 |
| 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/9959/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a660ab4d72db0b8571edb6b1bb257b61836cab57b55e88d86ec06c9b03ff4fac/IfcOpenShell/IfcOpenShell/issues/9959 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a660ab4d72db0b8571edb6b1bb257b61836cab57b55e88d86ec06c9b03ff4fac/IfcOpenShell/IfcOpenShell/issues/9959 |
| og:image:alt | ifcopenshell.api.root.copy_class and remove_product mishandle a structural item's applied loads, the IfcRelConnectsStructuralActivity relationships between an IfcStructuralItem and its IfcStructura... |
| 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 | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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