autocad 2013 CommandMethod assembly reference

autocad 2013 CommandMethod assembly reference

Anonymous
Not applicable
7,451 Views
4 Replies
Message 1 of 5

autocad 2013 CommandMethod assembly reference

Anonymous
Not applicable

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.

 

0 Likes
Accepted solutions (1)
7,452 Views
4 Replies
Replies (4)
Message 2 of 5

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

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
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 5

Anonymous
Not applicable

Thank You ... 

0 Likes
Message 4 of 5

kerry_w_brown
Advisor
Advisor

 

 

For Reference :

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


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 5 of 5

Anonymous
Not applicable

Excellent - exactly what I needed!

0 Likes