VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Type 'CommandMethod' is not defined.

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
tcorey
5053 Views, 7 Replies

Type 'CommandMethod' is not defined.

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 Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
7 REPLIES 7
Message 2 of 8
Hallex
in reply to: tcorey

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
Message 3 of 8
tcorey
in reply to: tcorey

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 Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 4 of 8
Alfred.NESWADBA
in reply to: tcorey

Hi,

 

does _NETLOAD tell you any problems?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 8
andrewpuller3811
in reply to: tcorey

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 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 6 of 8
tcorey
in reply to: tcorey

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 Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 7 of 8
Alfred.NESWADBA
in reply to: tcorey

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
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 8 of 8
tcorey
in reply to: tcorey

Thanks.



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

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut

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

Post to forums  

Autodesk Design & Make Report

”Boost