Rubberduck at Autocad

I can see that v2.0: 75% there the post mentions Autocad, and there is AutoCADApp.cs , but I cannot find a link for using Rubberduck outside of the office, within some random host application. There is a New Host Application Added to Rubberduck , but this is already done for Autocad.

Does using Rubberduck under Autocad require building from source? Or is there a procedure for using an already installed release package?

+3


source to share


1 answer


Disclaimer: I am actively involved in the Rubberduck project.

You probably just didn't list the registry keys for AutoCAD VBE to notice your ducky.

The Rubberduck installer looks for a Microsoft Office install bit and then registers itself using that bit.

So, if you have 32-bit Office and 32-bit CAD, you're all set. It's the same with 64-bit Office and 64-bit CAD. In your case, you probably have 32-bit Office, but 64-bit CAD, and therefore no registry key to tell the 64-bit VBE to load an add-on called Rubberduck.



You can run the PowerShell script you found on the project wiki (it generates both 32-bit and 64-bit extra keys), or create the missing HKCU registry key manually, but then the add-in will be visible but still won't load. as the COM interop stuff was registered under 32-bit nodes and CAD expects RD to be registered under 64-bit nodes. To register for the 64-bit version, you will have to run (as an administrator) the 64-bit command regasm.exe

as described in "troubleshooting" add -in cannot be loaded into the wiki section :

Note. The bitness of your OS doesn't matter.

Bring up the administrative command prompt cmd.exe> ​​and run one of the following commands:

32-bit host:

c:\windows\microsoft.net\framework\v4.0.30319\regasm.exe "(path to install folder)\rubberduck.dll" /codebase /tlb

      

64-bit host:

c:\windows\microsoft.net\framework64\v4.0.30319\regasm.exe "(path to install folder)\rubberduck.dll" /codebase /tlb

      

Note that these registration steps are required even if you create the addin yourself from source.

+4


source







All Articles