Suggestion: Ask for confirmation before overwriting case files

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

Suggestion: Ask for confirmation before overwriting case files

Post by ReneSci »

When the user (by accident) press the "Write" or the "Run" button, the case files are immediately written or the solvers start immediately - and overwrites the case and/or the solver results files.
2022-09-14 13_38_58-FreeCAD 0.20.1.png
2022-09-14 13_38_58-FreeCAD 0.20.1.png (9.96 KiB) Viewed 800 times
This could be quite pity if these files contains the results of many hours of calculations which would then be lost.
Maybe the user just what to view the results again (by pressing ParaView)

Could it be an idea to ask for a "Overwrite files" confirmation to make the user "think" once more.
Eventually suggesting another path for the new files ?

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: Danish/Denmark (da_DK)
Installed mods: 
  * A2plus 0.4.59
  * ArchTextures
  * Assembly4 0.12.4
  * CfdOF 1.17.9
  * Defeaturing 1.2.0
  * Dracula 0.0.2
  * ExtremeProDark 1.0.4
  * IconThemes
  * lattice2 1.0.0
  * Manipulator 1.4.9
  * MeshRemodel 1.8919.0
  * parts_library
  * Plot 2022.4.17
  * sheetmetal 0.2.57
  * workfeature
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Suggestion: Ask for confirmation before overwriting case files

Post by adrianinsaval »

on the other hand if you edited something and you want to write your changes it would be pretty annoying if you had to confirm every time that you want to overwrite.
KAKM
Posts: 109
Joined: Tue May 04, 2021 12:17 am

Re: Suggestion: Ask for confirmation before overwriting case files

Post by KAKM »

Yeah, I agree that it would be a pain in the rear to get that warning every time when you were getting a case set up/tweaked. What might make more sense is a popup (that has a "do not show again" option) that says something like "back up this result?" after a case successfully runs. It would save the results with an appropriate new file/directory name, and then your "working case" would proceed as normal. Or just having "back up results" as a box that could be checked in the preferences menu.
Post Reply