Title: Activating a drawing shows elements that the drawing won't print · Issue #10159 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Activating a drawing shows elements that the drawing won't print · Issue #10159 · IfcOpenShell/IfcOpenShell
X Title: Activating a drawing shows elements that the drawing won't print · Issue #10159 · IfcOpenShell/IfcOpenShell
Description: When a drawing is activated, tool.Drawing.activate_drawing filters elements by Include/Exclude, then tries to switch each one to a representation in the drawing's subcontexts (for an RCP: Plan/Model Body, Facetation and Annotation in REF...
Open Graph Description: When a drawing is activated, tool.Drawing.activate_drawing filters elements by Include/Exclude, then tries to switch each one to a representation in the drawing's subcontexts (for an RCP: Plan/Mode...
X Description: When a drawing is activated, tool.Drawing.activate_drawing filters elements by Include/Exclude, then tries to switch each one to a representation in the drawing's subcontexts (for an RCP: Plan/...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10159
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Activating a drawing shows elements that the drawing won't print","articleBody":"When a drawing is activated, `tool.Drawing.activate_drawing` filters elements by Include/Exclude, then tries to switch each one to a representation in the drawing's subcontexts (for an RCP: Plan/Model Body, Facetation and Annotation in `REFLECTED_PLAN_VIEW` or `MODEL_VIEW`). If an element has no representation in any of those, it keeps its current one and stays visible. Printing skips it, though, because `get_linework_contexts` uses the same context rules.\n\n**Example:** an `IfcBuildingElementProxy` whose only representation is 2D linework in Plan / Annotation / `PLAN_VIEW`. It shows in the viewport when an RCP drawing is active, but isn't in the printed RCP.\n\n**Expected:** the viewport matches the print. Elements with no representation in the drawing's contexts are hidden when the drawing is activated.\n\n**Note:** the `has_context` flag in `activate_drawing` is already computed for exactly this, but nothing reads it. The proposed fix uses it to leave those elements out of the isolated set. It skips elements with no representation at all, and skips `IfcAnnotation`, because annotations print through the drawing group rather than through linework contexts.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-11-06T22:44:28Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10159"}
| 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:1be0a013-26eb-c61d-6338-a4a9fc3031e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B62:519AB:C0A99:112FBB:6B04637C |
| html-safe-nonce | 3961108407fdb2c09e2ce0b18defdef6134d6486eeb9292ce4bc3aa56160fa19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjYyOjUxOUFCOkMwQTk5OjExMkZCQjo2QjA0NjM3QyIsInZpc2l0b3JfaWQiOiIyMDUyODk4OTUxMjY5MTgwMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fd23f9ee90dbcfc1f5689c4b3a404dea7f75bc46286329efe740315e1c57895b |
| hovercard-subject-tag | issue:6251972755 |
| 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/10159/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb49e9eee3edeb23e7662f9674e523f178a5d959e8d6728392479ca1b71bc19d/IfcOpenShell/IfcOpenShell/issues/10159 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb49e9eee3edeb23e7662f9674e523f178a5d959e8d6728392479ca1b71bc19d/IfcOpenShell/IfcOpenShell/issues/10159 |
| og:image:alt | When a drawing is activated, tool.Drawing.activate_drawing filters elements by Include/Exclude, then tries to switch each one to a representation in the drawing's subcontexts (for an RCP: Plan/Mode... |
| 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 | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| 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 | 03e114520787ad27289207f153520ef97461127c |
| 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