Title: Figure a way to pull a scale from a reference SVG. · Issue #7877 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Figure a way to pull a scale from a reference SVG. · Issue #7877 · IfcOpenShell/IfcOpenShell
X Title: Figure a way to pull a scale from a reference SVG. · Issue #7877 · IfcOpenShell/IfcOpenShell
Description: Figure a way to pull a scale from a reference SVG. That is, an svg created from a different .ifc file, that you would like to reference in another .ifc, and have the scale show on a drawing. Consistency — Drawings added to a sheet alread...
Open Graph Description: Figure a way to pull a scale from a reference SVG. That is, an svg created from a different .ifc file, that you would like to reference in another .ifc, and have the scale show on a drawing. Consis...
X Description: Figure a way to pull a scale from a reference SVG. That is, an svg created from a different .ifc file, that you would like to reference in another .ifc, and have the scale show on a drawing. Consis...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7877
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Figure a way to pull a scale from a reference SVG.","articleBody":"Figure a way to pull a scale from a reference SVG. \n\nThat is, an svg created from a different .ifc file, that you would like to reference in another .ifc, and have the scale show on a drawing. \n\n\n1. **Consistency** — Drawings added to a sheet already show their scale in the view-title (via `EPset_Drawing.HumanScale`). References were a silent exception; this closes that gap so the sheet reads uniformly.\n \n2. **No redundant data entry** — The scale is already encoded in the SVG as a CSS class (placed there at draw time). Reading it automatically means the user never has to manually set or re-enter the scale for a reference.\n \n3. **Non-destructive / read-only** — The SVG content is only parsed, never modified. There's no risk of corrupting the source drawing.\n \n4. **Works with externally-authored SVGs** — The `scale-X` class convention is part of the shared CSS framework, so references drawn outside Bonsai (e.g. by another IFC tool that follows the same stylesheet) will still get correct scale labels automatically.\n \n5. **Graceful degradation** — If the class is absent, malformed, or doesn't match any known scale, `data[\"Scale\"]` is simply left unset and the view-title renders a blank scale field — exactly the same behavior as before. Nothing breaks.","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-03-31T18:12:25Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7877"}
| 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:11c85e01-6d3a-19e8-ff59-d4ad05fafb5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E76A:3DD4C4:635E83:86583E:6B04AA00 |
| html-safe-nonce | f583b7a0feda256d7e4b914bdc59a2a1508538c9c6c09e1c1ead21c151efdc4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzZBOjNERDRDNDo2MzVFODM6ODY1ODNFOjZCMDRBQTAwIiwidmlzaXRvcl9pZCI6IjI2OTk5NjMxODE2MTg3MzU2MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3f88ff72c28cc95237cd63445d18ec329e057b449536dbf77372496f6ee96d87 |
| hovercard-subject-tag | issue:4181317476 |
| 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/7877/issue_layout |
| twitter:image | https://opengraph.githubassets.com/162c513cddcc9bb877ecc2b451a4d964b30ddc5088a74c775ea264cfbc480896/IfcOpenShell/IfcOpenShell/issues/7877 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/162c513cddcc9bb877ecc2b451a4d964b30ddc5088a74c775ea264cfbc480896/IfcOpenShell/IfcOpenShell/issues/7877 |
| og:image:alt | Figure a way to pull a scale from a reference SVG. That is, an svg created from a different .ifc file, that you would like to reference in another .ifc, and have the scale show on a drawing. Consis... |
| 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 | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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