Hello
When inserting a template file in TechDraw, there is a problem that the templates file does not open with the error message. The error message is '<class 'OSError'>: File C:/Users/NAME/AppData/Local/Temp/FreeCAD/Cache_Doc_~~~~~..../A4_~~~.tmp does not exist.'
Is There any solution?
Inquire about solutions to TechDraw template OSError
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 2
- Joined: Sun Mar 19, 2023 6:44 am
Re: Inquire about solutions to TechDraw template OSError
Hi and welcome to the forum!
Please attach your full FreeCAD info as described in the IMPORTANT forum rules linked in the Help forum.
What exactly did you do to get this? Did you just use TechDraw PageTemplate and select one of the predefined templates?
Please attach your full FreeCAD info as described in the IMPORTANT forum rules linked in the Help forum.
What exactly did you do to get this? Did you just use TechDraw PageTemplate and select one of the predefined templates?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Posts: 2
- Joined: Sun Mar 19, 2023 6:44 am
Re: Inquire about solutions to TechDraw template OSError
Hi
Yes. I used TechDraw PageTemplate. And, The same error occurs in all predefined templates and it does not open.
Even the default page doesn't open for the same error.
* predefined templates : A4_Landscape_blank, A4_Landscape_ISO7200_pep.... etc (All predefined templates contained in the TechDraw folder)
Yes. I used TechDraw PageTemplate. And, The same error occurs in all predefined templates and it does not open.
Even the default page doesn't open for the same error.
* predefined templates : A4_Landscape_blank, A4_Landscape_ISO7200_pep.... etc (All predefined templates contained in the TechDraw folder)
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Inquire about solutions to TechDraw template OSError
I don't use Windows very much, so take this with a grain of salt. Something looks wrong with that file spec. A template file name should end in "svg", not "tmp" and it shouldn't be in a Temp directory.bunnyfreecad wrote: ↑Sun Mar 19, 2023 6:58 am When inserting a template file in TechDraw, there is a problem that the templates file does not open with the error message. The error message is '<class 'OSError'>: File C:/Users/NAME/AppData/Local/Temp/FreeCAD/Cache_Doc_~~~~~..../A4_~~~.tmp does not exist.'
On my Windows VM, the templates are in "...Program Files/FreeCAD 0.20/data/Mod/TechDraw/Templates". "AppData/Local/Temp/..." looks more like a working file.
If you are selecting an entry from a file dialog and getting a "does not exist" error, my first thought would be a permissions issue. Can you open
a template file from that directory using FileExplorer?
Re: Inquire about solutions to TechDraw template OSError
The Page Result file ends up in AppData. But the OP's path seems incorrect. It should be something like this:
Code: Select all
C:/Users/Name/AppData/Local/Temp/FreeCAD/Cache/FreeCAD_Doc_40c40c1f-81f4-4d30-9977-0dcd2dee2e1d_da39a3_3816/A4_LandscapeTD.svg