Page 1 of 1

Save As ...

Posted: Thu Jul 21, 2022 7:36 pm
by JeffHuns
If I open QCAD via right-clicking on a .dwg file and 'open with' QCAD and go to SAVE AS let's say a .dxf file that the working directory would be the same directory as the .dwg file, I opened QCAD with instead of the folder I used a week ago the last time I used SAVE AS. Most Windows programs, including some legacy software, use this standard. Thank you for all that you do.

Re: Save As ...

Posted: Fri Jul 22, 2022 6:41 am
by CVH
Hi,

As far as I know the 'Save As' path is that of the last use of 'Save As'.
This is saved in your QCAD ini/config under the [SaveAs] heading.
Most of the QCAD tools have persistent options.

Very handy when for example you receive drawings on a USB-stick, open them and want to preserve them in a local folder.
Or after downloading drawing files like those from this forum.

To optionally use the current file path instead one could always enter a feature request here:
https://www.ribbonsoft.com/bugtracker/

Regards,
CVH

# EDIT # But you are right, after some more testing it can elude me where the 'Save As' path is sourced from in some situations. :?
Looking at the script it should be the current drawing path or the last used 'Save As' path for a new drawing without filename.
But it seems to revert to the last openened or first opened file path too ....

Re: Save As ...

Posted: Sun Jul 24, 2022 9:30 am
by CVH
All,

can anyone confirm the following:

- Create a new folder for testing purpose.
- Start QCAD and create a new but simplistic drawing and save this with 'SaveAs' in the test folder.
-> QCAD will store the used path under the [SaveAs] header in the QCAD3.ini/config file.

- Close all drawings in QCAD.
- Close QCAD.
- Restart QCAD.
-> QCAD will start with a new empty drawing 'Untitled 1'.

- 'SaveAs' (Ctrl+Shift+S).
-> Without a valid filename QCAD proposes the testing folder but we will cancel that.

- Open any drawing that you have at hand, any will do except the one in the testing folder.
- 'SaveAs' (Ctrl+Shift+S).
-> QCAD proposes the drawing its folder but again we will cancel that.

- Swap to the new drawing 'Untitled 1'.
- 'SaveAs' (Ctrl+Shift+S).
-> Again, without valid filename QCAD proposes the testing folder and again we will cancel that.

- Swap back to the other drawing.
- 'SaveAs' (Ctrl+Shift+S).
-> QCAD proposes the testing folder ... :shock:
Expected is the path of drawing itself as in the previous trial with this drawing.


We can expand this test further:
- Close the new empty drawing 'Untitled 1', this will not be saved.
- Close QCAD with your file still open.
- Restart QCAD and it will automatically load that file again.
- Start a new drawing (Ctrl+N).
- Swap to the first drawing and 'SaveAs' (Ctrl+Shift+S).
-> Also now QCAD proposes the test folder instead of the drawing path... :(

We have to conclude that it is possible to confuse QCAD in what folder to propose for 'SaveAs'.
And that merely swapping drawing tabs has an influence.


Regards,
CVH

Re: Save As ...

Posted: Wed Jul 27, 2022 6:18 am
by CVH
Filed a bugreport with fix:
https://www.ribbonsoft.com/bugtracker/i ... sk_id=2380

Hope it gets picked up ...

# EDIT # Fixed for the next release :P . Thanks Andrew.

Regards,
CVH