VB Express, Assertion Failed

VB Express, Assertion Failed

Anonymous
Not applicable
626 Views
3 Replies
Message 1 of 4

VB Express, Assertion Failed

Anonymous
Not applicable
I've become pretty good at VBA programming but now I'm trying to convert a large macro into a VB add in. I'm very new at VP Express 2005 and I'm following the document "Taking the Step from VBA to Inventor Add-Ins" by Brian Ekins, which I got off these forums. Everything goes well until I try to debug. Brian says to create a file with the same name as the project but with a different extension, i.e. projectname.vbproj.user and he gives the contents of the file. I've created a text file named with the extension he suggests and it seems to work fine to debug, but the problem is that when I try to perform a build I get an "assertion failed" dialogue box. I've attached a Word document containing the dialogue box. Deleting the vbproj.user file and trying again does not solve the problem. Can anyone tell me what the problem is? Thanks. Grant
0 Likes
627 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Unfortunately the error message isn't much help. Problems with a project
can be hard to track down. Especially with the Express editions since you
can't see all of the various project settings because they hide many of the
project settings to simplify the interface. Rather than try to figure out
the problem in your current project I would create a new add-in using the
wizard and add the vbproj.user file to it. Make sure you can build it and
then start moving your code over from the existing project. If the basic
add-in compiles, but it fails to compile once you've moved the code then
this points to some issue with your code.
--
Brian Ekins
Autodesk Inventor API
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks for the help. I've done a little more experimenting and it seems that the error message is not necessarily related to the debugging text file. When I start a project I can start programming and build the project into an add-in that works, until I save the project. It doesn't matter if I close the project entirely and re-open it or if I just save it and then try to perform a build. Once I've saved it the build fails and I get the error message I attached earlier. I'm running Win XP x64 if that makes any difference. Any ideas?
0 Likes
Message 4 of 4

Anonymous
Not applicable
OK, I did a little more trouble shooting and the problem seems to be related to the fact the my default project folder is a shared file on the network. As soon as I save the project directly onto my hard drive the project saves and builds fine (at least for now).

So this leads to my next question: because of all the playing around I've done, Inventor loads several different add-ins I've created that are useless. What is the proper way to get rid of them? Thanks.
0 Likes