Title: Bonsai: toggle a profile type's length between typed (shared) and per-instance · Issue #8657 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: toggle a profile type's length between typed (shared) and per-instance · Issue #8657 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: toggle a profile type's length between typed (shared) and per-instance · Issue #8657 · IfcOpenShell/IfcOpenShell
Description: Feature / enhancement Let a profile-based type's extrusion length be either typed (shared/driven by the type) or per-instance (each occurrence owns its length), and let the user toggle between the two. Motivation Revit exports profile me...
Open Graph Description: Feature / enhancement Let a profile-based type's extrusion length be either typed (shared/driven by the type) or per-instance (each occurrence owns its length), and let the user toggle between the ...
X Description: Feature / enhancement Let a profile-based type's extrusion length be either typed (shared/driven by the type) or per-instance (each occurrence owns its length), and let the user toggle between ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8657
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: toggle a profile type's length between typed (shared) and per-instance","articleBody":"### Feature / enhancement\n\nLet a profile-based type's **extrusion length** be either **typed** (shared/driven by the type) or **per-instance** (each occurrence owns its length), and let the user toggle between the two.\n\n### Motivation\n\nRevit exports profile members (e.g. curtain-wall mullions) as **typed-length**: the extrusion — including its length — lives on the type's `IfcRepresentationMap`, and every occurrence shares it via an `IfcMappedItem`. Bonsai's profile tooling assumes each occurrence owns an editable `SweptSolid` (the `IfcMemberStandardCase` convention), so on these mapped occurrences:\n\n- the per-instance Length control never appears (the occurrence only *inherits* the type's `IfcMaterialProfileSet`, so `get_usage_type(should_inherit=False)` is `None`);\n- editing / joining / `extend_profile` misbehave or crash (see #8656);\n- changing the type's material bleeds across every instance.\n\nBoth models are legitimate: some workflows want each mullion individually editable (per-instance), others want one length driven by the type (typed, catalog-part style). Neither is invalid IFC — a mapped body + profile-set usage is a valid `IfcMember` (just not the `StandardCase` subtype); `IfcMaterialProfileSet` never carries length, so length always lives in geometry. Bonsai should support and let you switch between both.\n\n### Proposed behaviour\n\n- Treat **Length** as a typed/per-instance property of a profile type.\n- **Per-instance**: occurrence gets its own `SweptSolid` body (geometry/length preserved, shared `IfcProfileDef` kept) + its own `IfcMaterialProfileSetUsage`, so the Length control appears and each length is editable independently.\n- **Typed**: occurrence maps the type's shared `RepresentationMap` (creating one from the occurrence if the type has none), so all instances share one length.\n- A **toggle** (a \"Per-instance Length\" checkbox in the Type panel) to convert between the two, in both directions, without corrupting the shared geometry or affecting siblings.\n- Newly created occurrences of a mapped/typed profile type **default to per-instance**.\n\n### Notes\n\n- Converting to per-instance must **not** delete the shared mapped body (that cascades to siblings — see #8656); it orphans it and gives the occurrence its own copy.\n- Implementation in progress on branch `profile-length-per-instance` (design notes under `docs/dev-notes/`). Depends on the fixes in #8655 and #8656.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-07-16T17:27:24Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8657"}
| 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:d011342e-6017-77de-49a9-6837ab44fb2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAAC:C24D0:B6B29:FE09F:6B046D47 |
| html-safe-nonce | d2bea7c36855faca3fe70e826147ed3838f7fde5aecf8c29d122706bfbe48470 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUFDOkMyNEQwOkI2QjI5OkZFMDlGOjZCMDQ2RDQ3IiwidmlzaXRvcl9pZCI6IjQ0OTQ1MjA4NDEzOTYzMTc1MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 11946d6fcf8cfd7d856eb29f0f804f454d3a62ce5a8b55eb274781b781ee8888 |
| hovercard-subject-tag | issue:4904464616 |
| 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/8657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd22bebfcba61023e2730c053c081372371536a28170e93a0a7c8f91e8f005ab/IfcOpenShell/IfcOpenShell/issues/8657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd22bebfcba61023e2730c053c081372371536a28170e93a0a7c8f91e8f005ab/IfcOpenShell/IfcOpenShell/issues/8657 |
| og:image:alt | Feature / enhancement Let a profile-based type's extrusion length be either typed (shared/driven by the type) or per-instance (each occurrence owns its length), and let the user toggle between the ... |
| 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 | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| 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 | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| 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