Active Member
Posts: 6
Registered: ‎05-19-2014
Message 1 of 2 (113 Views)

Difficulty migrating .NET exe to dll

113 Views, 1 Replies
06-02-2014 11:59 AM


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





ADN Support Specialist
Posts: 390
Registered: ‎04-30-2009
Message 2 of 2 (41 Views)

Re: Difficulty migrating .NET exe to dll

08-08-2014 10:38 AM in reply to: mdshameer



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...


Augusto Goncalves
Autodesk Developer Network
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.