.NET

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

Difficulty migrating .NET exe to dll

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

Hi,

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

MdShameer

 

 

 

ADN Support Specialist
augusto.goncalves
Posts: 361
Registered: ‎04-30-2009
Message 2 of 2 (34 Views)

Re: Difficulty migrating .NET exe to dll

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

Hi,

 

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

Regards,



Augusto Goncalves
Autodesk Developer Network
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.