Type 'CommandMethod' is not defined.

Type 'CommandMethod' is not defined.

tcorey
Mentor Mentor
5,703 Views
8 Replies
Message 1 of 9

Type 'CommandMethod' is not defined.

tcorey
Mentor
Mentor

I installed VS 2010 Express and then installed ObjectARX SDK 2013.

 

I can start a project, but in myCommands.vb I get the message above. It's going to be difficult to continue if any commands I create have a 0% chance of working.

 

Does anyone know why I would get this error even though I am able to start a project using the AutoCAD Plug-in.

 

I have already uninstalled and re-installed VisualStudio and ObjectArx.

 

Any ideas?



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Accepted solutions (1)
5,704 Views
8 Replies
Replies (8)
Message 2 of 9

Hallex
Advisor
Advisor

Hope you added these references:

Imports Autodesk.AutoCAD.Runtime '<-- this one is to call CommandMethod

Imports Autodesk.AutoCAD.DatabaseServices

 Imports Autodesk.AutoCAD.ApplicationServices

Imports Autodesk.AutoCAD.EditorInput

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 3 of 9

tcorey
Mentor
Mentor

Yep, all the references are there. Any other ideas?

 

I double-checked my folders for acmgd.dll and acad.exe and those are correct.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 4 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

does _NETLOAD tell you any problems?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 9

andrewpuller3811
Advisor
Advisor
Accepted solution

Have you got a reference to AcCoreMgd.dll ?



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023
Message 6 of 9

tcorey
Mentor
Mentor

That was it, ACCoremgd.dll. I loaded that reference and I'm off and running.

 

Thanks for the help!



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 7 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> That was it, ACCoremgd.dll. I loaded that reference and I'm off and running.

How were you able to compile your project with success?

 

Ohh, or haven't you set "Option Strict" active? If so, set it to yes and you will get errors while writing code and at least when compiling your source. That saves you a lot of time!

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 8 of 9

tcorey
Mentor
Mentor

Thanks.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 9 of 9

s_saravanaselvam
Observer
Observer

check your .net version 

0 Likes