Title: Inconsistent annotations order in the drawings svgs · Issue #6608 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Inconsistent annotations order in the drawings svgs · Issue #6608 · IfcOpenShell/IfcOpenShell
X Title: Inconsistent annotations order in the drawings svgs · Issue #6608 · IfcOpenShell/IfcOpenShell
Description: Bug Description Noticed that when creating a drawing, annotations order changes after Blender restart. For example see 2 images below - they were produced from the same Bonsai version, same project, just a Blender restart apart. And beca...
Open Graph Description: Bug Description Noticed that when creating a drawing, annotations order changes after Blender restart. For example see 2 images below - they were produced from the same Bonsai version, same project...
X Description: Bug Description Noticed that when creating a drawing, annotations order changes after Blender restart. For example see 2 images below - they were produced from the same Bonsai version, same project...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6608
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent annotations order in the drawings svgs","articleBody":"### Bug Description\n\nNoticed that when creating a drawing, annotations order changes after Blender restart.\nFor example see 2 images below - they were produced from the same Bonsai version, same project, just a Blender restart apart. And because order changed, the appearance of some annotations has changed (see \"NON COMBUSTIBLE INSULATION - FILL ENTIRE CAVITY\" is missing background fill on image 1 because it comes first in SVG). Not sure if there's currently a workaround for this particular issue but it may also affect other parts of the drawing too.\n\nImage 1\n\n\nImage 2\n\n\nProject to reproduce the issue - https://hub.openingdesign.com/OpeningDesign/OD_Project_Template/src/commit/d5ba22325c6065f282b7ea04573f9c507b51fb59/Open/Models/Bonsai\nSetup project (download just 1 commit):\n```\ngit init\ngit remote add origin https://hub.openingdesign.com/OpeningDesign/OD_Project_Template.git\ngit fetch origin d5ba22325c6065f282b7ea04573f9c507b51fb59 --depth=1\ngit checkout d5ba22325c6065f282b7ea04573f9c507b51fb59\ngit submodule init\ngit submodule update --depth 1 --recursive\n```\n\nI was using a simple script to test it out and show inconsistencies:\n```python\nfrom pathlib import Path\nfrom collections import defaultdict\n\npath = Path(r\"L:\\svgs\")\ndata: defaultdict[Path, defaultdict[str, list[int]]] = defaultdict(lambda: defaultdict(list))\n\nguids = [\n \"0xTC6p9k50kAHMQ_PIbjEP\",\n \"0I_Q1x97L7JgoXwj0PepSB\",\n]\n\nfor path in path.glob(\"*.svg\"):\n text = path.read_text()\n data_ = data[path]\n for i, line in enumerate(text.splitlines(), 1):\n for guid in guids:\n if guid in line:\n data_[guid].append(i)\n\nrows: list[list[str]] = []\nrows.append([\"-----\", \"label\", \"background\"])\nfor filepath, data_ in data.items():\n def get_range(lst: list[int]) -> str:\n return f\"{min(lst)}-{max(lst)}\"\n ranges = [get_range(data_[guid]) for guid in guids]\n row = [filepath.stem, *ranges, \"✅\" if ranges[0] > ranges[1] else \"❌\"]\n rows.append(row)\n\nfor row in rows:\n print(\" \".join(row))\n```\n\nOutput (it shows lines used by the \"NON COMBUSTIBLE INSULATION - FILL ENTIRE CAVITY\" and the background image and shows a checkmark if label comes second and it's background fill is visible:\n```\n----- label background\n1 1028-1033 1108-1108 ❌\n2 1028-1033 1108-1108 ❌\n3 1145-1150 1017-1017 ✅\n4 1021-1026 1122-1122 ❌\n5 1112-1117 1192-1192 ❌\n6 1028-1033 1115-1115 ❌\n7 1035-1040 1113-1113 ❌\n8 1168-1173 1037-1037 ✅\n9 1028-1033 1108-1108 ❌\n```","author":{"url":"https://github.com/Andrej730","@type":"Person","name":"Andrej730"},"datePublished":"2025-04-23T13:08:27Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6608"}
| 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:c0d1b8e2-3981-a400-591a-736b88623852 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D106:A6239:1A9B3F:24B039:6B04B49A |
| html-safe-nonce | d2487a329c58cc23f30063772e52258b57194ed8b1db51b30ab4a6d7403db195 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTA2OkE2MjM5OjFBOUIzRjoyNEIwMzk6NkIwNEI0OUEiLCJ2aXNpdG9yX2lkIjoiODg5NDkyMTk1NjY1MTIxODA3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e0ae4181637dba308a8b555dec5d68d3d7b83e03cf01097e9c50324690d9e797 |
| hovercard-subject-tag | issue:3013956009 |
| 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/6608/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96ae7ab5f1bc353315e41d991946ba8f362507324c9e6e946009c3f67440db59/IfcOpenShell/IfcOpenShell/issues/6608 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96ae7ab5f1bc353315e41d991946ba8f362507324c9e6e946009c3f67440db59/IfcOpenShell/IfcOpenShell/issues/6608 |
| og:image:alt | Bug Description Noticed that when creating a drawing, annotations order changes after Blender restart. For example see 2 images below - they were produced from the same Bonsai version, same project... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andrej730 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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