
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.