Register COM Plug-In on 64 bit OS

By Adam Nagy

I installed the 64 bit version of Navisworks Manage and now would like to register my plug-in for it. How can I do it?

Solution

The dll needs to be compiled to the same architecture as the Navisworks application you want to load it into, so in case of x64 it needs to be 64 bit as well. In case of a .NET dll the build option would need to be x64 or Any CPU

The registry entries listed in the [Navisworks install folder]\api\COM\documentation\COM Interface.pdf will have a x64 suffix, e.g. Software\Autodesk\Navisworks Manage x64\8.0\COM Plugins

If your plugin is written in .NET, then you need to register it using the 64 bit version of regasm: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exe

If your plugin is written in VB6, then it would need to be created as a COM exe, so that it could run out-of-process from Navisworks.
Note: if your VB6 plugin was compiled to be a dll, then it would be a 32 bit dll, as that’s the only type of dll/exe VB6 can create, and a 64 bit process (inc. Navisworks x64) cannot load a 32 bit dll.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading