COM Registration

COM Registration

etckerry
Enthusiast Enthusiast
296 Views
1 Reply
Message 1 of 2

COM Registration

etckerry
Enthusiast
Enthusiast
I am registering my add-in with regasm /codebase, and it works fine on my development machine. When I build the project it is registered automatically, but I can unregister and register it using regasm and when I start IV (2009, if it matters) my add-in appears (or doesn't appear) in the add-ins list as expected.

I tried to deploy by simply distributing the .dll and install/uninstall batch files that call regasm. When I run the batch files it tells me that the types were registered, however, my add-in is not "seen" by IV - it's not even in the list.

Is this problem related to not having a "strong name" or is it something new to IV 2009. I used the same method for 2008 add-ins without a problem. I did try creating an installer with .NET, but it wasn't able to automatically register my assembly because interop.inventor.dll didn't have a strong name.

Has anyone else experienced this? What do you guys do for deployment?

Thanks,

Kerry
0 Likes
297 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I haven't seen this problem. My only guess is that in the registration of
your add-in you're restricting it to a certain version of Inventor. Look at
the Settings key of your add-in for the value named
"SupportedSoftwareVersionXXXX" where XXXX could be one of several things to
control how you specify the version(s) your add-in is compatible with.
These are listed in the online help topic for add-ins.
--
Brian Ekins
Autodesk Inventor API
0 Likes