Posts: 25
Registered: ‎12-15-2003
Message 11 of 13 (34 Views)

Re: Help starting out

12-18-2006 03:07 PM in reply to: ryan
if the error is in the debugging... i would first try it straight from AutoCAD (not thru the debugger in VS)... open up a session of AutoCAD and netload your dll file in, if it works here then your code is fine and it's probably a setting or 2 wrong in the debugging mode.

one thing with the debugging mode, is you have to set the 'working directory' to be the same as the acad.exe file your executing thru the debugger... if you go to the project properties -> debugging tab you'll find the 'working directory' there... put in the folder path to the acad.exe (for me its c:\program files\autocad 2006\)


New Member
E. Vallauri
Posts: 1
Registered: ‎01-17-2007
Message 12 of 13 (34 Views)

Re: Help starting out

01-17-2007 06:57 AM in reply to: ryan

This really works for me.
AutoCAD debugged with its own dll's, rather than having VS working with local copy of both acdbmgd.dll and acmgd.dll files let me now call my CommandMethods...

It also explain the reason why I were able to call them only in AutoCAD 2007 not in a debugging session of VS 2005.

I'm searching another reason explaining your problem...
Posts: 21
Registered: ‎03-08-2007
Message 13 of 13 (34 Views)

Re: Help starting out

03-09-2007 07:00 AM in reply to: ryan

Just had the same problem and fixed with the suggestion from one of the earlier posts. Don't know if you overlooked it.

Goto the Project menu and click on ... Properties at the bottom. Then make sure that in the Debug tab you've got 'Start external program' selected and it points to your acad.exe file then make sure that the 'working directory' box points to the folder that holds acad.exe. Should work fine then through debug mode.

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.