Title: Bonsai, error when using , in drawing names and clicking on the drawing in the sheet part of UI. · Issue #5493 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai, error when using , in drawing names and clicking on the drawing in the sheet part of UI. · Issue #5493 · IfcOpenShell/IfcOpenShell
X Title: Bonsai, error when using , in drawing names and clicking on the drawing in the sheet part of UI. · Issue #5493 · IfcOpenShell/IfcOpenShell
Description: I had this error for a while, and finally i figured out the reason. I tought i was breaking my models in some way, but a lot more simple. So here is an issue on it, to bring it to attention. Easy fix, but maybe this should be more clear ...
Open Graph Description: I had this error for a while, and finally i figured out the reason. I tought i was breaking my models in some way, but a lot more simple. So here is an issue on it, to bring it to attention. Easy f...
X Description: I had this error for a while, and finally i figured out the reason. I tought i was breaking my models in some way, but a lot more simple. So here is an issue on it, to bring it to attention. Easy f...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5493
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai, error when using , in drawing names and clicking on the drawing in the sheet part of UI.","articleBody":"I had this error for a while, and finally i figured out the reason. I tought i was breaking my models in some way, but a lot more simple. \r\nSo here is an issue on it, to bring it to attention. \r\n\r\nEasy fix, but maybe this should be more clear to the end user.\r\n- initial user (me) fix, reload the .ifc, lose session settings, and maybe dont trigger the mistake again.\r\n- The error only occurs when you click on a drawing with , in it eg. \"PLAN, 1. floor\" in the sheet UI. \r\n- When clicked on, the sheet ui collapses and can only be reopened by reopening the file or from my latest findings remove any , in drawing names. \r\n- For reference the name of the drawing will appear without the , no matter if it in the name or not. guess it makes sense python doesnt want , ...\r\n- When in the error state sometimes saving returns:\r\n```\r\nPython: Traceback (most recent call last):\r\n File \"C:\\Users\\DBO\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\drawing\\ui.py\", line 446, in draw\r\n op = drawing_button.operator(\"bim.activate_drawing\", icon=\"OUTLINER_OB_CAMERA\", text=\"\")\r\n ^^\r\nUnboundLocalError: cannot access local variable 'drawingid' where it is not associated with a value\r\n```\r\n\r\nHere is a file.\r\n[BreakSheetUi.ifc.txt](https://github.com/user-attachments/files/17138047/BreakSheetUi.ifc.txt)\r\n1) open sheets and click on the drawing \"Plan view\" inside A00 - Name sheet.\r\n2) \"Error\" occurs\r\n3) Remove \",\" from the drawing name, in drawing ui. Everything works again. \r\n\r\n\r\nI don't know if this should be fixed or not, i will leave that to the brains. But from my background it's not unusual to add \",\" in naming. Else if no fix, maybe some more clear error message, or a conditioned text that appears. Could maybe even be as simple as adding to the description when hovering names \"Active drawing index, NEVER use , in names, unless you know what you are doing\"","author":{"url":"https://github.com/Slackking1","@type":"Person","name":"Slackking1"},"datePublished":"2024-09-25T20:44:59Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5493"}
| 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:384bc7fc-e9cf-d9b3-8824-fa95299cad73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A6E:9B75F:533A0C:6ED2FF:6B04C0D4 |
| html-safe-nonce | 05bbd1795e98642bd78c004dc2e4c668fec9dd3ec9c3d4c0b6b8d2be3305ea6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTZFOjlCNzVGOjUzM0EwQzo2RUQyRkY6NkIwNEMwRDQiLCJ2aXNpdG9yX2lkIjoiNzY3OTM4MDM3MDAzNDU3MzUyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d7ac810e54ba6931c7e01fbde9a75e51fa4e5fc302b8632243c08beb1dd045c |
| hovercard-subject-tag | issue:2548967743 |
| 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/5493/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8be0416e4c286b1bb6c7b899057af4908f8327ac260a7ceac8580390e6c43ba6/IfcOpenShell/IfcOpenShell/issues/5493 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8be0416e4c286b1bb6c7b899057af4908f8327ac260a7ceac8580390e6c43ba6/IfcOpenShell/IfcOpenShell/issues/5493 |
| og:image:alt | I had this error for a while, and finally i figured out the reason. I tought i was breaking my models in some way, but a lot more simple. So here is an issue on it, to bring it to attention. Easy f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Slackking1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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