.NET

Reply
Valued Mentor
kevin.barnett
Posts: 397
Registered: ‎08-13-2007
Message 1 of 5 (3,140 Views)
Accepted Solution

autocad 2013 CommandMethod assembly reference

3140 Views, 4 Replies
04-12-2012 03:20 AM

Microsoft Visual C# 2010 Express

Trying to create first dll in 2013, 

referenced acdbmgd and acmgd (as usual, as in previous versions)

 

then included:

 

using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;

 

but ...

Error in IDE (Visual C#) when entering: [CommandMethod("TEST")]

Error: CommandMethod could not be found .. are you missing a using directive or an assembly reference

 

???

What did I miss?

Thx.

Kevin.

 

Hi,

 

for AutoCAD 2013 you have to reference a third dll by default: AcCoreMgd.dll (to be found in the installation directory of AutoCAD).

 

HTH, - alfred -

*Expert Elite*
Alfred.NESWADBA
Posts: 9,401
Registered: ‎06-29-2007
Message 2 of 5 (3,139 Views)

Re: autocad 2013 CommandMethod assembly reference

04-12-2012 03:30 AM in reply to: kevin.barnett

Hi,

 

for AutoCAD 2013 you have to reference a third dll by default: AcCoreMgd.dll (to be found in the installation directory of AutoCAD).

 

HTH, - alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Valued Mentor
kevin.barnett
Posts: 397
Registered: ‎08-13-2007
Message 3 of 5 (3,136 Views)

Re: autocad 2013 CommandMethod assembly reference

04-12-2012 03:35 AM in reply to: Alfred.NESWADBA

Thank You ... 

Valued Mentor
KerryBrown
Posts: 276
Registered: ‎11-29-2008
Message 4 of 5 (3,127 Views)

Re: autocad 2013 CommandMethod assembly reference

04-12-2012 04:10 AM in reply to: kevin.barnett

 

 

For Reference :

http://through-the-interface.typepad.com/through_the_interface/2012/03/migrating-net-applications-to...

//-------------------------------------------------------

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

New Member
ncolangelo
Posts: 1
Registered: ‎10-01-2008
Message 5 of 5 (2,812 Views)

Re: autocad 2013 CommandMethod assembly reference

08-10-2012 12:20 PM in reply to: kevin.barnett

Excellent - exactly what I needed!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!