Title: Bonsai: editable "Elevation from Storey" + select-by-value on Placement panel fields · Issue #8547 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: editable "Elevation from Storey" + select-by-value on Placement panel fields · Issue #8547 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: editable "Elevation from Storey" + select-by-value on Placement panel fields · Issue #8547 · IfcOpenShell/IfcOpenShell
Description: Feature request Two related enhancements to Bonsai's Placement panel (Properties → Placement). Both have a working implementation, happy to open a PR. This builds on the imperial Location display added in #8127. 1. Editable "Elevation fr...
Open Graph Description: Feature request Two related enhancements to Bonsai's Placement panel (Properties → Placement). Both have a working implementation, happy to open a PR. This builds on the imperial Location display a...
X Description: Feature request Two related enhancements to Bonsai's Placement panel (Properties → Placement). Both have a working implementation, happy to open a PR. This builds on the imperial Location displ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8547
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: editable \"Elevation from Storey\" + select-by-value on Placement panel fields","articleBody":"## Feature request\n\nTwo related enhancements to Bonsai's **Placement** panel (Properties → Placement). Both have a working implementation, happy to open a PR.\n\nThis builds on the imperial Location display added in #8127.\n\n---\n\n### 1. Editable \"Elevation from Storey\" field\n\nAn object's Location is shown in absolute project coordinates. When modeling it's often more useful to know — and set — an element's height *relative to the building storey it's contained in* (e.g. \"this window sits 3'-0\" above the level\").\n\nAdd an editable **\"Elevation from Storey\"** field showing the object origin's Z relative to its containing `IfcBuildingStorey`:\n\n- **Editable** — typing a value moves the object vertically so its origin sits that distance above/below the storey elevation.\n- **Applies to all selected** — editing the value moves every selected object, each relative to *its own* storey (handy for bulk-setting e.g. sill heights).\n- **Z only** — \"elevation\" is a single vertical value, so it's a dedicated row below X/Y/Z.\n- **Conditional** — only shown when the element has a containing storey.\n- **Auto-refreshes** — updates immediately when the container is changed or removed.\n\n### 2. Select-by-value on placement fields\n\nEach read-only value in the panel doubles as a flat (`emboss=False`) button. Clicking it **selects every IFC object that shares that value** (Shift+Click to extend the selection). Matching is done on the *displayed* value, so it's what-you-see-is-what-you-get and works in both metric and imperial.\n\nThis applies to:\n\n- **Location** X / Y / Z (absolute coordinate)\n- **Rotation** X / Y / Z (angle)\n- **Elevation from Storey**\n\nThe read-only value column is now shown for **metric too** (previously imperial-only), unifying the layout across unit systems.\n\nExample use: click the value next to Rotation Z to select every element rotated the same amount about Z; or click a shared sill elevation to grab all the windows at that height.\n\n### Mockup\n\n```\nLocation:\nX [ 3.0 ] 3' 0\" \u003c- click value to select objects sharing this X\nY [ 2.0 ] 2' 0\"\nZ [ 10.0 ] 10' 0\"\nElevation from Storey [ 0.0 ] 0' 0\"\nRotation:\nX [ 0 ] 0.00 deg\nY [ 0 ] 0.00 deg\nZ [ 45 ] 45.00 deg \u003c- click value to select objects rotated 45 deg on Z\n```\n\n### Implementation notes\n\n- Editable elevation: `FloatProperty` (`unit=\"LENGTH\"`) with custom get/set on `BIMObjectGeometryProperties`; the setter nudges each selected object's `location.z` by the delta between desired and current world Z, reusing Bonsai's normal placement-sync path.\n- Storey world-Z resolved via `ifcopenshell.util.element.get_container(element, ifc_class=\"IfcBuildingStorey\")`, preferring the storey's Blender object matrix and falling back to its IFC placement.\n- Select-by-value: a `bim.select_similar_placement_value` operator with a `mode` (`X`/`Y`/`Z`, `RX`/`RY`/`RZ`, `ELEVATION`); a shared `format_rotation` helper keeps the on-screen values and the matching in sync.\n- `bim.assign_container` / `bim.remove_container` tag the Properties editor for redraw so the elevation field reflects the new container.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-07-12T15:36:17Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8547"}
| 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:1eb5de34-e5f4-70ac-9da3-f1a65766d125 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 983A:2339FE:154E8:1CCA8:6B04AD79 |
| html-safe-nonce | 948eb5eb2010e633bf9eaf03817f78877897e0435a120b44671e3adfbc32bbad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODNBOjIzMzlGRToxNTRFODoxQ0NBODo2QjA0QUQ3OSIsInZpc2l0b3JfaWQiOiI0MDQyMzUzNzc5NzU5NDI2OTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 83535a5d01911934792208a7918d94be58f16ab8a0afbce6a6fabe906d22f6f3 |
| hovercard-subject-tag | issue:4867642569 |
| 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/8547/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fca04e0d2789fdeedea4efbdb50e38ad6c30a857ae7753d64136197e6d6a7c74/IfcOpenShell/IfcOpenShell/issues/8547 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fca04e0d2789fdeedea4efbdb50e38ad6c30a857ae7753d64136197e6d6a7c74/IfcOpenShell/IfcOpenShell/issues/8547 |
| og:image:alt | Feature request Two related enhancements to Bonsai's Placement panel (Properties → Placement). Both have a working implementation, happy to open a PR. This builds on the imperial Location display a... |
| 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 | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | canary-2 |
| 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