Title: Bonsai: add an inverse of bim.select_assigned_product to select the annotations assigned to an element · Issue #9030 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: add an inverse of bim.select_assigned_product to select the annotations assigned to an element · Issue #9030 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: add an inverse of bim.select_assigned_product to select the annotations assigned to an element · Issue #9030 · IfcOpenShell/IfcOpenShell
Description: Feature Description bpy.ops.bim.select_assigned_product() lets you go from an annotation to the product it is assigned to. There is currently no way to travel that relationship in the opposite direction: given a wall, door, space, or gri...
Open Graph Description: Feature Description bpy.ops.bim.select_assigned_product() lets you go from an annotation to the product it is assigned to. There is currently no way to travel that relationship in the opposite dire...
X Description: Feature Description bpy.ops.bim.select_assigned_product() lets you go from an annotation to the product it is assigned to. There is currently no way to travel that relationship in the opposite dire...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9030
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: add an inverse of bim.select_assigned_product to select the annotations assigned to an element","articleBody":"### Feature Description\n\n`bpy.ops.bim.select_assigned_product()` lets you go from an annotation to the product it is assigned to. There is currently no way to travel that relationship in the opposite direction: given a wall, door, space, or grid axis, there is no one-click way to find and select the annotations that reference it.\n\n**Proposal: add the inverse operator, `bpy.ops.bim.select_assigned_annotations()`.**\n\nGiven the current selection, it would walk `IfcProduct.ReferencedBy` → `IfcRelAssignsToProduct.RelatedObjects` and select every `IfcAnnotation` it finds.\n\n#### Why this is useful\n\n- Checking whether an element has actually been tagged/dimensioned, and finding those tags without hunting through drawings.\n- Selecting all annotations belonging to a set of elements in order to restyle, move, or delete them as a group.\n- Before deleting or replacing an element, seeing which annotations are about to be orphaned.\n- Answering \"which drawings is this wall annotated in?\" — the annotations are the trail back to the drawings.\n\n#### Suggested behaviour\n\n- Acts on the whole selection, not just the active object, so it works for a set of elements at once.\n- Additive selection, matching `select_assigned_product`, which leaves the annotation selected when it selects the product.\n- Grid axes need the same special case as `get_assigned_product`: an axis is not a product, so its annotations hang off the grid's `IfcRelAssignsToProduct` and are matched by `Name` == `AxisTag`. Selecting axis `A` should not pull in axis `B`'s tag.\n- Annotations living in drawings that aren't currently loaded aren't in the view layer and can't be selected. They should be counted and reported rather than silently dropped or throwing — e.g. *\"Selected 3 of 7 assigned annotations, 4 are in drawings that aren't loaded.\"*\n\n#### Suggested UI\n\n- **Product Assignments panel.** Today the panel only polls for `IfcAnnotation` and shows the single product it points at. It could also appear for products that have annotations assigned, showing the other side of the same relationship — a count, the annotation names, and a select button. This keeps one panel for one relationship instead of introducing a second concept.\n- **Object context menu.** A *Select Assigned Annotations* entry next to the existing *Go to Drawing* entry, shown only when the active element actually has annotations.\n\n#### Related\n\n- The existing `bim.select_assigned_product` operator (`core.drawing.select_assigned_product` / `tool.Drawing.get_assigned_product`) is the operation this mirrors, and `get_assigned_product` is the function the new lookup should be the exact inverse of.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-07-28T20:04:11Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9030"}
| 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:c594dea7-9274-c7b5-75ac-30305e151a7c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A25A:29F525:1DA940:27D0EE:6B04833B |
| html-safe-nonce | faaf5eaf73380924a5fa6f91ae65263d55da206ba05a0feb0168514e989d7d43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjVBOjI5RjUyNToxREE5NDA6MjdEMEVFOjZCMDQ4MzNCIiwidmlzaXRvcl9pZCI6IjE5MTk3ODM3MjA5MjAwNTY2MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 500f1fd48b12fa78e65300ec6996938ff2a276c8dc5f204881c9ba37e824de5f |
| hovercard-subject-tag | issue:5002534774 |
| 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/9030/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63dc49c09d7523fef28bbf541e2d038c0eb00d3852bafef863ad92bb6fb9dee3/IfcOpenShell/IfcOpenShell/issues/9030 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63dc49c09d7523fef28bbf541e2d038c0eb00d3852bafef863ad92bb6fb9dee3/IfcOpenShell/IfcOpenShell/issues/9030 |
| og:image:alt | Feature Description bpy.ops.bim.select_assigned_product() lets you go from an annotation to the product it is assigned to. There is currently no way to travel that relationship in the opposite dire... |
| 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 | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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