Title: Bonsai and api.structural: loads that vary along a member, loads in local axes, and ProjectedOrTrue · Issue #10190 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai and api.structural: loads that vary along a member, loads in local axes, and ProjectedOrTrue · Issue #10190 · IfcOpenShell/IfcOpenShell
X Title: Bonsai and api.structural: loads that vary along a member, loads in local axes, and ProjectedOrTrue · Issue #10190 · IfcOpenShell/IfcOpenShell
Description: Part of #9866. The API can write these, and Bonsai's Show Loads already draws some of them (load_decoration_data.py handles IfcStructuralLoadConfiguration and sinus and parabolic line loads), but Bonsai can't author any of them, so every...
Open Graph Description: Part of #9866. The API can write these, and Bonsai's Show Loads already draws some of them (load_decoration_data.py handles IfcStructuralLoadConfiguration and sinus and parabolic line loads), but B...
X Description: Part of #9866. The API can write these, and Bonsai's Show Loads already draws some of them (load_decoration_data.py handles IfcStructuralLoadConfiguration and sinus and parabolic line loads), b...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10190
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai and api.structural: loads that vary along a member, loads in local axes, and ProjectedOrTrue","articleBody":"Part of #9866. The API can write these, and Bonsai's Show Loads already draws some of them (`load_decoration_data.py` handles `IfcStructuralLoadConfiguration` and sinus and parabolic line loads), but Bonsai can't author any of them, so every action it makes is a constant load in global axes on a whole item.\n\n1. **The action's `PredefinedType` is always CONST.** `AddStructuralActivity` (`bim/module/structural/operator.py:701`) doesn't pass `predefined_type`, although `structural.add_structural_activity` takes one. LINEAR, POLYGONAL, DISCRETE, SINUS and PARABOLA can't be chosen. This is also true of Apply Load in #9869 and the PRs after it.\n\n2. **No load that varies along a member.** LINEAR, POLYGONAL and DISCRETE actions take an `IfcStructuralLoadConfiguration`: values, each with its position along the member in `Locations`. Neither the API nor Bonsai makes one (`structural/data.py:294` offers subtypes of `IfcStructuralLoadStatic` only). A helper in `api.structural`, e.g. `add_structural_load_configuration(values, locations)`, would need to keep the rules in the informal propositions of `IfcStructuralCurveAction`: LINEAR has two values, POLYGONAL three or more, DISCRETE two or more, with locations in ascending order. A trapezoidal load, or a load on part of a beam (one starting at 1 m and ending at 3 m), needs this.\n\n3. **Always GLOBAL_COORDS.** `global_or_local` isn't passed either, so a load can't be given in the member's local axes (a wind load across a rafter, say). #9917 and #10002 already read LOCAL_COORDS on point actions; nothing writes it.\n\n4. **`ProjectedOrTrue` isn't offered.** For a line or planar load on a sloping member, PROJECTED_LENGTH (snow on a roof, per metre on plan) and TRUE_LENGTH (self-weight of a roof covering, per metre along the slope) differ by the cosine of the slope.\n\nRelated: a point load on a member's span (`IfcStructuralPointAction` on an `IfcStructuralCurveMember`) needs the activity's own vertex as its topology representation (IfcStructuralActivity, Topology Use). The API doesn't write it, and Bonsai only allows point actions on point connections (`operator.py:680`). I have a local API branch that adds a `topology` argument to `add_structural_activity` for this, waiting for a Bonsai use. I can open a PR if that would help Apply Load.\n\n[ifc_structural_mechanics](https://github.com/brunopostle/ifc_structural_mechanics) reads all of the above, so models with these loads can be analysed once they can be written.\n\nAI disclosure: drafted with the assistance of Claude Code, checked against v0.9.0 by me.\n","author":{"url":"https://github.com/brunopostle","@type":"Person","name":"brunopostle"},"datePublished":"2026-11-09T23:48:33Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10190"}
| 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:801b6527-4935-9a1f-4375-dd678ebb9cdd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E094:3C4279:12368D:19B47B:6B046580 |
| html-safe-nonce | 9f97e5a1da654026b871617b73094590881ec6c7bede53f3477da86455717bc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDk0OjNDNDI3OToxMjM2OEQ6MTlCNDdCOjZCMDQ2NTgwIiwidmlzaXRvcl9pZCI6IjI1MTE0OTcyNDY0MTYzMzIxNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f8f97d3498bdb496e60253b53a601a13ff0ae254a9dc2db2d4057b02a79196a8 |
| hovercard-subject-tag | issue:6297051832 |
| 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/10190/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d7e5c535bc5d22b6765b6e291212957d13b2d12ea8284b8caa370bb0fd5a8dd/IfcOpenShell/IfcOpenShell/issues/10190 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d7e5c535bc5d22b6765b6e291212957d13b2d12ea8284b8caa370bb0fd5a8dd/IfcOpenShell/IfcOpenShell/issues/10190 |
| og:image:alt | Part of #9866. The API can write these, and Bonsai's Show Loads already draws some of them (load_decoration_data.py handles IfcStructuralLoadConfiguration and sinus and parabolic line loads), but B... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brunopostle |
| 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