.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command not working in Autocad 2015

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
1034 Views, 4 Replies

Command not working in Autocad 2015

Hi,

 

I have created a .net dll application using VS 2005.

It was working ok with autocad 2008 when i load the dll file with netload command. All the commands in dll file is working ok in autocad 2008.

 

But same dll application is not working in Autocad 2015.

After loading dll file using netload command in Autocad 2015. when i type the command then it says undefine command.

 

Please help.

 

Thanks & regards

Amit

4 REPLIES 4
Message 2 of 5
SENL1362
in reply to: Anonymous

The project isn't loaded because of the "undefined command" .
You have to recompile you're program and references the proper AutoCAD DLL's like: accoremgd, acdbmgd, acmgd, ...

Message 3 of 5
Anonymous
in reply to: Anonymous

A dll compiled to work with 2008 isn't going to work with 2015. You need to add references for the 2015 dlls.

Message 4 of 5
Ajilal.Vijayan
in reply to: Anonymous

Hi Amit,

 

To make .net dll application for Acad 2015 you should use VS 2012.

  • Microsoft Visual Studio 2012
  • Microsoft .NET Framework 4.5

More information can found here.

 

  • The main DLL files of the AutoCAD .NET API that you will frequently use are:

    • AcCoreMgd.dll. Use when working within the editor, publishing and plotting, and defining commands and functions that can be called from AutoLISP.
    • AcDbMgd.dll. Use when working with objects stored in a drawing file.
    • AcMgd.dll. Use when working with the application and user interface.
    • AcCui.dll. Use when working with customization files.

 

Message 5 of 5
_gile
in reply to: Ajilal.Vijayan


Ajilal.Vijayan a écrit :

Hi Amit,

 

To make .net dll application for Acad 2015 you should use VS 2012.

  • Microsoft Visual Studio 2012
  • Microsoft .NET Framework 4.5

 


From my experience, not exactly. Applications built for AutoCAD 2013 still work on AutoCAD 2015.

So you have to think about you application requirements from the AutoCAD libraries you target.

 

If you target AutoCAD 2013 (and later), you have to reference this version libraries which requires the .NET Framework 4.0 (or later). this framework is available with Visual Studio 2010 (or later).

 

If you want to use the new features from AutoCAD 2015 .NET API, you need to reference AutoCAD 2015 libraries which requires the .NET Framework 4.5, available with Visual Studio 2012 (or later).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost