How To Convert 2011 AddIn to 2012

How To Convert 2011 AddIn to 2012

Anonymous
Not applicable
922 Views
2 Replies
Message 1 of 3

How To Convert 2011 AddIn to 2012

Anonymous
Not applicable

I need to convert my AddIn to registry-free COM as described in the 2012 API powerpoint (from CADToolBox.com).

 

The slideshow mentions that documentation is provided for how to do this, but I have no idea where to find it.  Maybe I am looking in the wrong places.

 

Can anyone help?

 

Thanks!

0 Likes
Accepted solutions (1)
923 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

After creating a 2012 AddIn project using the wizard, and comparing to my old 2011 AddIn project, I managed to update my 2011 project using the following steps:

 

1 remove all COM registration

2 create a .addin file in the c:\ProgramData\Autodesk\Inventor 2012\AddIns folder

  (this file will tell Inventor where your AddIn dll resides, replaces the COM registration method)

3 make sure your project references the new Inventor Interop DLL version 16...

4 add the manifest build command to your post build events

  (call "%VS90COMNTOOLS%vsvars32" mt.exe -manifest "$(ProjectDir)ExactFlatInventor2012.X.manifest" -  outputresource:"$(TargetPath)";#2) 

  I'm not sure why or if this is needed, but the wizard created this so I used it.

5 Your installer must place the .addin file in the programdata folder, and refer to the proper path regardless of where the AddIn is installed.  I created a custom installer class to do this.  You could also install to the Inventor bin directory I think, and Inventor will automatically find it.

 

I hope I'm not missing anything, please let me know if I am.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi Dean, 

 

I’m trying to convert my VBA Macros to .NET Add Ins, but when I try to execute a sample form the SDK  or when I want to used the AddIn Template  I got this error:

 

Error    1          El comando "call "vsvars32.bat"

mt.exe -manifest "C:\Archivos de programa\Autodesk\Inventor 2012\SDK\DeveloperTools\Samples\VB.NET\AddIns\SimpleAddIn\My Project\SimpleAddIn.manifest" -outputresource:"C:\Archivos de programa\Autodesk\Inventor 2012\SDK\DeveloperTools\Samples\VB.NET\AddIns\SimpleAddIn\bin\SimpleAddIn.dll";#2

tlbexp "C:\Archivos de programa\Autodesk\Inventor 2012\SDK\DeveloperTools\Samples\VB.NET\AddIns\SimpleAddIn\bin\SimpleAddIn.dll"" salió con el código 9009.            SimpleAddIn

 

I was reading your solution and you say:" to add the manifest build command to your post buld events", I’m not sure how to do this, I think this is why I can’t execute the addins hope you can help me.

 

Thanks you,

 

Daniela Dubois

 

0 Likes