Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot find template

16 REPLIES 16
SOLVED
Reply
Message 1 of 17
newcomer
3932 Views, 16 Replies

Cannot find template

First, thanks to everyone who replied to my last post.  I am just sitting down at the computer to start looking at those answers in detail.  Meanwhile, I have another question, which is probably the result of horrible laziness on the part of some programmer.

 

I select "Export face as", and get told that it cannot find the .dwg template and I should check the path and try again.

 

A bit of exploration of the documentation and the Inventor options reveals that the documentation is horrendously obsolete, and therefore largely misleading.  However, when I checked the options in Inventor, it told me that the template path was

 

%PUBLICDOCUMENTS%\Autodesk\Inventor 2014\Templates\

 

A bit more exploration (since I typically use mm units) allowed me to write a new default template file.  I did this because the standard default file is English and I use metric.  That had no effect on the error condition. 

 

It is not clear what %PUBLICDOCUMENTS% means on my machine (the %...% means that this is the name of an environment variable which gets expanded, but, alas, without seeing the expansion, I have no idea what it is, because in a standard command shell this environment variable is not defined.  Hence the need to implement all such error messages in a useful fashion, which I describe below.  I suspect that this environment variable is set by the C "setenv" or the Windows "SetEnvironmentVariable" calls and is only valid in the program for the duration of the execution of the program.  The ExpandEnvironmentStrings API call is used to expand these by replacing the %name% by its value.

 

In a sane world where programmers understood users, the message would not say something mysterious about the template file, but would name the EXACT FILE PATH that was being used.  This would be incredibly useful, as it would probably enable me to discover the error and fix it.  At the very least, that second-level item should be expandable and the next lower node would be the EXACT filename it was looking for.

 

I was a software developer for 50+ years, and one thing I practiced, and demanded, was that there are no secret file names, and every error message be correctly presented.

 

Instead of

=========

Open error

=========

I would always convert the error string to text and issue something like

========================================

Open Error

Access Denied

File "q:\here\and\there\and\somewhere\else.txt"

========================================

 

among other notable advantages of this latter technique is the fact that a huge number of "tech support" issues can be solved by the end user!

 

So if I knew what file it was looking for, and precisely where it was looking for it, and I had a problem, I could verify what had gone wrong and gave me that error.  In the absence of the information, and any documentation that might lead me to the correct information, I can only say "Duh!" and ask for help.

 

(I may be a newbie at Inventor, but I have a half-century of experience writing programs to interface to users, and half of that, 25 years, was in Microsoft Windows.  I used to teach courses on this)

 

 So, what's really wrong and how do I fix it?

     joe

 

16 REPLIES 16
Message 2 of 17
SBix26
in reply to: newcomer

%PUBLICDOCUMENTS% is C:\Users\Public\Public Documents.  The folder indicated in the error message should contain a template named Standard.dwg.

 

You didn't need to "write a new default template file"-- all you need to do is open Application Options and under the File tab click on the Configure Default Template... button.  Here you can select which standard you are using, and the appropriate templates will be placed in the Templates folder and named Standard.xxx

Sam B

Inventor Professional 2016 Update 2
Vault Basic 2016
Windows 7 Enterprise 64-bit, SP1

Message 3 of 17
newcomer
in reply to: SBix26

When I said that I wrote a new default template file, I did it by the method you described, and it did not change the misbehavior.  I still got the same error.

      joe

 

Message 4 of 17
newcomer
in reply to: newcomer

Attached is the directory listing showing that the files exist in the place expected.  The path I posted in the original message was a copy-and-paste from the options dialog. 

    joe

 

Message 5 of 17
SBix26
in reply to: newcomer

Next thing to check, then, is your active project.  Project files (.ipj) can re-define the Templates folder, overriding the default path that you gave in your first post.  Open the Projects Editor, make sure that your active project (the one with the check mark) is selected in the upper pane, then expand the Folder Options in the lower pane.  The Templates entry will either be [Default] or a specific path different from the default.  

 

If it's not the default, then that's where Inventor is looking for the Standard.dwg template when this project is active.  If it is using the default location, then I'm out of ideas.

Sam B

Inventor Professional 2016 Update 2
Vault Basic 2016
Windows 7 Enterprise 64-bit, SP1

Message 6 of 17
newcomer
in reply to: SBix26

I have no project file, so it can't be overriding anything.

     joe

 

Message 7 of 17
Mark.Lancaster
in reply to: newcomer

Yes you are using a project file.  Make sure everything is closed out of Inventor and select Project as seen in this image.   Expand folder options and see what your settings are

 

11-8-2015 8-30-02 AM.jpg

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Message 8 of 17
Sohrabm
in reply to: Mark.Lancaster

When I click new I get this image and no choice of (sheet metal, parts, assembly, title block,,,etc).

Don't know what is going on? I am using Inventor 2021.

Any idea/ help?

 

Sohrabm_0-1594817308253.png

 

 

Message 9 of 17
andrewiv
in reply to: Sohrabm

There are no templates in the default location.  Do you want to use the default location or should it be pointing to a different location for the templates?

Andrew In’t Veld
Designer

Message 10 of 17
Sohrabm
in reply to: andrewiv

From what I remember the templates I used were in the default location.

Still when I search it in this link: C:\Users\Public\Documents\Autodesk\Inventor 2021\Templates, I don't see any templates, it is completely empty.

Message 11 of 17
andrewiv
in reply to: Sohrabm

Did you just install 2021?  Are there any templates in the 2020 (or whatever version you used previously) folder?

Andrew In’t Veld
Designer

Message 12 of 17
Sohrabm
in reply to: andrewiv

I installed Inventor 2021 two months ago and back then I had no problem with it. Before that I used Inventor 2020, and again no issues/ problem. Right now even when I open Inventor 2020, I have the same issue/ problem with that version too! (No templates)

Message 13 of 17
andrewiv
in reply to: Sohrabm

Are you a single user or do you work with a team?  Is there a CAD admin that can restore your templates or point you to a different location where they are stored?  If no, can you restore the templates from a backup?

 

I also vaguely remember that doing a repair or reinstall will restore the templates since they are part of the original installation, but don't quote me on that.  My company uses templates stored out on a network drive.

Andrew In’t Veld
Designer

Message 14 of 17
Sohrabm
in reply to: andrewiv

Thanks for your input, I guess I must search the internet for a (migrate) template if I can find one.

No we don't have any CAD IT, we just do the search ourselves.

Message 15 of 17
andrewiv
in reply to: Sohrabm

If you have colleagues that don't have this problem, you can copy the templates from their hard drive or check their template file paths to verify that yours is correct.

Andrew In’t Veld
Designer

Message 16 of 17
johnsonshiue
in reply to: Sohrabm

Hi! Starting from Inventor 2020, the default templates are stored one subfolder under \Design Data\Templates. If you click on "en-US", you should see the templates. If not, you can easily generate a new set. Go to Tools -> App Options -> Files -> Configure Default Templates -> select the standard and unit.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 17 of 17
FDressel
in reply to: newcomer

I am still having this problem and hoping someone sees what I'm missing.  I can create a new drawing with the dwg standard template is an option in "Create New File."  It will save the drawing I create as a dwg just fine.  However, when I go File, save copy as, and select the dxf file format, I get the error, "Could not open the DWG template file.  Please check the path and try again."  I've check and the standard DWG template is in the template folder.

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report