Page 1 of 1
[solved] "Create Library Item" [BT] starting save directory
Posted: Fri Oct 30, 2020 8:52 pm
by Russell Ault
QCAD 3.25.2 Professional
Windows 10 Professional
Hi there!
I'm starting to build up a small library for myself and I've run into a slightly annoying quirk: every time I create a library Item, the "Save As" dialogue comes up in the "C:\Program Files\QCAD" folder, as opposed to the directory I added in Application Preferences or even the last folder I saved a library item to. Is there some way to change which directory the "Save As" dialogue starts in?
Thanks!
-Russ
Re: "Create Library Item" [BT] starting save directory
Posted: Fri Oct 30, 2020 10:45 pm
by Husky
Russell Ault wrote: ↑Fri Oct 30, 2020 8:52 pm
Is there some way to change which directory the "Save As" dialogue starts in?
Unfortunately the current QCAD version does not support this option what means the "Save As" folder is controlled by Windows.
Maybe it helps a bit to set a "Quick access" for the most needed folders in Windows. Just navigate to the folder, right mouse click on it, chose "Pin to Quick access" and it will be listed on the left side in your "Windows Explorer". You can then move it (up - down) with the left mouse to what ever order works best for you ...

- Husky-2020.10.30-01.png (41.65 KiB) Viewed 11351 times
Re: "Create Library Item" [BT] starting save directory
Posted: Fri Oct 30, 2020 10:57 pm
by Russell Ault
Husky wrote: ↑Fri Oct 30, 2020 10:45 pm
Unfortunately the current QCAD version does not support this option what means the "Save As" folder is controlled by Windows. [...]
Ah okay; it's strange because the "Save As" dialogue for saving files (i.e. "File"->"Save As...") takes me to the last folder used, but not for the "Create Library Item" button. Ah well.
Thanks!
-Russ
Re: "Create Library Item" [BT] starting save directory
Posted: Sat Oct 31, 2020 3:50 am
by CVH
Husky wrote: ↑Fri Oct 30, 2020 10:45 pm
the "Save As" folder is controlled by Windows.
Noop see: CreateLibraryItem.js
Code: Select all
var res = File.getSaveFileName(
EAction.getMainWindow(),
qsTr("Save library item as..."),
RSettings.getLaunchPath() + "/libraries",
filterStrings);
What means that the file "save as" folder = the launch path + "/libraries"
=> Not controlled by Windows ... Hardcoded in QCAD
One could file a feature request ...
Regards,
CVH
Re: "Create Library Item" [BT] starting save directory
Posted: Sat Oct 31, 2020 4:18 am
by Russell Ault
CVH wrote: ↑Sat Oct 31, 2020 3:50 am
Noop see: CreateLibraryItem.js
Code: Select all
var res = File.getSaveFileName(
EAction.getMainWindow(),
qsTr("Save library item as..."),
RSettings.getLaunchPath() + "/libraries",
filterStrings);
What means that the file "save as" folder = the launch path + "/libraries"
=> Not controlled by Windows ... Hardcoded in QCAD
One could file a feature request ...

[...]
Okay, that's what I figured. Now that I know where it is I can probably fix it myself; does QCAD accept community contributions?
Thanks!
-Russ
Re: "Create Library Item" [BT] starting save directory
Posted: Sat Oct 31, 2020 4:28 am
by CVH
One should file this at bugtracker ...
... and let Andrew handle this.
https://www.ribbonsoft.com/bugtracker/
CVH
Re: "Create Library Item" [BT] starting save directory
Posted: Sat Oct 31, 2020 6:25 pm
by Russell Ault
CVH wrote: ↑Sat Oct 31, 2020 4:28 am
One should file this at bugtracker ...
... and let Andrew handle this.
[...]
Done.
I ask about community contributions because most of the FLOSS software I work with is more than happy to accept pull requests (a few officially state that feature requests submitted with patches will be more likely to be implemented, although I suspect this is unofficially true of all of them). That said, I would imagine that the dual-licensing of the QCAD codebase makes contribution licensing a much more technical process than it is for those other projects.
Thanks!
-Russ
Re: [solved] "Create Library Item" [BT] starting save directory
Posted: Thu Oct 14, 2021 11:09 am
by CVH
All,
Should be fixed in the next release (> 3.26.4.9).
The script on GitHub is already updated by Andrew, thanks.
One can delete any custom created folder and/or file before updating QCAD.
Regards,
CVH