I have made a .NET exe, that communicates with AutoCAD.
As AutoDesk exchange requires dll, I built the Visual Studio solution with application type Class Library. The output DLL was used in .bundle.
But, although, the command is loaded (in autosuggestions), AutoCAd returns "Unknown Command".
Can anyone help why does this happen?
[Instead of .dll, a .lsp works. So I doubt the problem is with my converting exe to dll. I am not with a formal programming background]
Thanks in advance
When you migrate something from EXE to DLL for AutoCAD, you need to make adjustments so AutoCAD will recognize the commands.
For instance, all methods that a user can call must have a CommandMethod attribute. This is done with some additional references, not available on EXE: AcMgd, AcDbMgd and AcCoreMgd (this last for 2013+)
Not sure how far you are on the migration, let us know...
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!