Problems Migrating to VB.NET 2008

Problems Migrating to VB.NET 2008

etckerry
Enthusiast Enthusiast
344 Views
3 Replies
Message 1 of 4

Problems Migrating to VB.NET 2008

etckerry
Enthusiast
Enthusiast
Hello,

I have an add-in that I developed for Inventor 2008 and 2009, but having recently upgraded to 2010, I thought I'd try upgrading the SDK I was using as well. I went through the process of removing the old SDKs, installed VB.NET 2008 (previously used 2005) and tried to build the project. I got many errors, most of which look something like "'ApplicationAddInTypeEnum' is ambiguous in the namespace 'Inventor'."

If I create a new project, I can select Inventor Add-In as the type, and everything works fine, but I'm having trouble getting my old project to work. It looks like all of the references are there, but I'm sure I'm missing something. I'm not very familiar with VB.NET or the compiler, but I was expecting to easily look at the references from the new project and the references from my old project and reconcile the differences. It looks like they have the same references for Autodesk libraries, although the old project has many more references overall than the new one.

Any advice?

Thanks,

Kerry
0 Likes
345 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
You should have a reference to Autodesk.Inventor.Interop in the list of
references for the project (see the attached picture). If you see it in the
list, select it and look in the properties window to see what version it is.
Version 14 will be for Inventor 2009 and version 15 for Inventor 2010. If
you don't see the reference you need to add one. If you do see it, delete
it and try adding it again for the version 15 interop. Assuming that you're
wanting to develop for Inventor 2010.
--
Brian Ekins
Inventor API Product Designer
http://blogs.autodesk.com/modthemachine
0 Likes
Message 3 of 4

etckerry
Enthusiast
Enthusiast
Thanks, this helped a lot. Turns out the problem was a reference to Interop.Inventor.dll that was located in my add-in project's binaries directory. Removing it fixed the problem.

Just a note - my Inventor 2010 Autodesk.Inventor.Interop reference is version 14, not 15.

-Kerry
0 Likes
Message 4 of 4

Anonymous
Not applicable
You're right. Thanks for the clarification. I get mixed up sometimes
moving back and forth between the versions.
--
Brian Ekins
Inventor API Product Designer
http://blogs.autodesk.com/modthemachine
0 Likes