wrong default folder for saving and creating pages

Discussions about the development of the TechDraw workbench
User avatar
uwestoehr
Posts: 1364
Joined: Sun Jan 27, 2019 3:21 am

wrong default folder for saving and creating pages

Postby uwestoehr » Mon Dec 09, 2019 7:03 pm

- take a document without yet any page
- create a new page using a template

result: you get correctly the TD template folder open to select a template file

- select a template of your choice
- select the page in the document tree and use the File menu to export the page as SVG

result: you get the TD template folder as proposal

This should not happen because a template folder is for templates, and , more important for users without admin permissions on Windows, they cannot write into the template folder.
Therefore the proposed folder should be the one where the file is currently saved in.

- nevertheless, choose a folder of your choice and export the page as SVG
- now create a new page from template

result: you don't get the templates folder but the folder where you just exported the SVG to

This is a problem, because one is a bit lost where to get the templates. Since the templates folder is known, one should in every case this folder when creating new pages from templates.
ulrich1a
Posts: 1920
Joined: Sun Jul 07, 2013 12:08 pm

Re: wrong default folder for saving and creating pages

Postby ulrich1a » Mon Dec 09, 2019 10:23 pm

This seems to be a general problem in FreeCAD 0.19. Opening a document starts for me in the binary folder, despite there is a path saved in user.sys where I did saved my last document. This should be the folder where I want to open my documents.
There should be predefined pathes given for the opening of drawings, images, templates, macros, render settings and what else FreeCAD is dealing with.

Ulrich
User avatar
uwestoehr
Posts: 1364
Joined: Sun Jan 27, 2019 3:21 am

Re: wrong default folder for saving and creating pages

Postby uwestoehr » Mon Dec 09, 2019 11:06 pm

ulrich1a wrote:
Mon Dec 09, 2019 10:23 pm
This seems to be a general problem in FreeCAD 0.19. Opening a document starts for me in the binary folder, despite there is a path saved in user.sys where I did saved my last document.
I cannot reproduce this. On Windows 10 and Windows 7 I get with FC 0.18.4 and

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18846 (Git)
Build type: Release
Branch: master
Hash: ceeb776fff25c679752571d5d8e6c4c8b1fd9008
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

File -> Open opens the last used folder.