Title: Unintentionally deleting all my layouts · Issue #5881 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Unintentionally deleting all my layouts · Issue #5881 · IfcOpenShell/IfcOpenShell
X Title: Unintentionally deleting all my layouts · Issue #5881 · IfcOpenShell/IfcOpenShell
Description: Oh boy, I'm glad I use git to save my layouts, because it just saved me a ton of rework. I was stripping my main file down to a minimal example to demonstrate another issue. I saved it in the same folder as the main file. As part of mini...
Open Graph Description: Oh boy, I'm glad I use git to save my layouts, because it just saved me a ton of rework. I was stripping my main file down to a minimal example to demonstrate another issue. I saved it in the same ...
X Description: Oh boy, I'm glad I use git to save my layouts, because it just saved me a ton of rework. I was stripping my main file down to a minimal example to demonstrate another issue. I saved it in the s...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5881
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unintentionally deleting all my layouts","articleBody":"Oh boy, I'm glad I use git to save my layouts, because it just saved me a ton of rework.\r\n\r\nI was stripping my main file down to a minimal example to demonstrate another issue. I saved it in the same folder as the main file. As part of minimising the file I deleted the sheets in the demo file. This deleted the on-disk layout file. It is perhaps logical when thought about, but definitely was not intended.\r\n\r\nIssue was discovered later when I tried to generate a sheet from the still intact main working file:\r\n```\r\nError: Python: Traceback (most recent call last):\r\n File \"/home/steve/.config/blender/4.2bonsai/extensions/.local/lib/python3.11/site-packages/bonsai/bim/ifc.py\", line 443, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/steve/.config/blender/4.2bonsai/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/drawing/operator.py\", line 1773, in _execute\r\n sheet_builder.update_sheet_drawing_sizes(sheet)\r\n File \"/home/steve/.config/blender/4.2bonsai/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/drawing/sheeter.py\", line 143, in update_sheet_drawing_sizes\r\n layout_tree = ET.parse(layout_path)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/snap/blender/5561/4.2/python/lib/python3.11/xml/etree/ElementTree.py\", line 1218, in parse\r\n tree.parse(source, parser)\r\n File \"/snap/blender/5561/4.2/python/lib/python3.11/xml/etree/ElementTree.py\", line 569, in parse\r\n source = open(source, \"rb\")\r\n ^^^^^^^^^^^^^^^^^^\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/steve/Documents/Blender/BonsaiBIM/XXXXXXXXXXXXX/layouts/EX01 - Existing Site Plan.svg'\r\n```\r\nPerhaps actively deleting the on-disk file should be rethought? As far as I can tell, only the layouts were affected, but I'm still a basic user of Bonsai, so I may have missed other potential risks.\r\n```\r\nos: Linux\r\nos_version: #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024\r\npython_version: 3.11.7\r\narchitecture: ('64bit', 'ELF')\r\nmachine: x86_64\r\nprocessor: x86_64\r\nblender_version: 4.2.4 LTS\r\nbonsai_version: 0.8.1-alpha241201\r\nbonsai_commit_hash: 1ecf722\r\nlast_actions: \u003csnip - not relevant>\r\nlast_error: None\r\nifc: XXXXXXXXXXXXXX.ifc\r\nschema: IFC4\r\npreprocessor_version: IfcOpenShell 0.8.1-alpha241201\r\noriginating_system: Bonsai 0.8.1-alpha241201-1ecf722\r\n```","author":{"url":"https://github.com/sboddy","@type":"Person","name":"sboddy"},"datePublished":"2024-12-15T23:04:28Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5881"}
| 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:c7130886-0a27-9425-88f0-baa40504d37c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED6E:2102E4:7E2FFB:A91AED:6B04A73A |
| html-safe-nonce | ef1ca2f0b7b5f3ec6b3a511c0642c21503bab2bcc7faab3df2e6b7ffe0736883 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDZFOjIxMDJFNDo3RTJGRkI6QTkxQUVEOjZCMDRBNzNBIiwidmlzaXRvcl9pZCI6IjM0MjczMTU3Mzg1Nzc1MTIyNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d95e9fd39ea0eeaa7c6b61ee74e254ceec54f83cca17185a4e49f9d702c2035f |
| hovercard-subject-tag | issue:2740963076 |
| 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/5881/issue_layout |
| twitter:image | https://opengraph.githubassets.com/105e3317815feadead244d7bbda219342f3f92ed57a3f86e46675b4fe55b7e0d/IfcOpenShell/IfcOpenShell/issues/5881 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/105e3317815feadead244d7bbda219342f3f92ed57a3f86e46675b4fe55b7e0d/IfcOpenShell/IfcOpenShell/issues/5881 |
| og:image:alt | Oh boy, I'm glad I use git to save my layouts, because it just saved me a ton of rework. I was stripping my main file down to a minimal example to demonstrate another issue. I saved it in the same ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sboddy |
| 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