In order to test your advice, I changed the "Start In:" folder back to the
UserDataCache folder.
I changed the Copy Local property to false for acdbmgd.dll and acmgd.dll as
per Norman's advice. I built the project. I opened AutoCAD to test it, and
it didn't work. I closed AutoCAD, and set the Copy Local property back to
true for acdbmgd.dll as per Paul's advice. I built the project. I opened
AutoCAD to test it, and it didn't work. I closed AutoCAD, and set the
"Start In:" back to the AutoCAD root folder. I opened AutoCAD to test it,
and this time it worked.
So it looks like the Copy Local property has nothing to do with this
problem. It looks like I'm stuck with changing the "Start In:" folder for
AutoCAD.
Thanks for your efforts.
Randy Richardson
Hattiesburg, MS
"Paul Richardson" wrote in message
news:5402961@discussion.autodesk.com...
Setting 'CopyLocal' is only necessary for 'acmgd'. As far as I know
'acdbmgd' is not demand loaded. Works on my end anyway.
"Norman Yuan" wrote in message
news:5401020@discussion.autodesk.com...
Check your project's reference to acdbmgd.dll and acmgd.dll, make sure their
"Copy Local" set to False. That is, make VS2005 not copy the two DLLs to the
folder where your dll is in when compiling your project.
"Randy Richardson" wrote in message
news:5400852@discussion.autodesk.com...
I did not see the netload dialog box but I didn't expect to see it because
it was invoked in an AutoLISP program, which specified the DLL to be loaded.
The reason I say it doesn't work is that the when I try to use a custom
AutoCAD command that was defined in the dll I get an "Unknown Command"
error, and when I try to use a custom AutoLISP function that was defined in
the dll I get a "no function definition" error.
I'm using AutoCAD 2007 and Visual Studio 2005.
As I said, running AutoCAD in the AutoCAD root directory solves the problem,
but, I'm wondering, at what cost? And I'd sure be interested to know why it
works fine without doing that for others but not for me.
Randy Richardson
Hattiesburg, MS
"Norman Yuan" wrote in message
news:5400738@discussion.autodesk.com...
When you say "netload" not working, what does that mean? Do you not see the
open file dialog box, or do you see error message after load the dll?
As for Acad's "Atart in" folder is set to
"C:\...\AcadInstall\UserDataCache\" for the short-cut, as you mentioned in
the other post, although your change seems solved your problem for now, I
doudt it is the real reason. My Acad2006 and Acad2007's (on the same
computer) short-cut have the same settings and "NETLOAD" command works well
for both.
You may want to tell your Acad's version, your VS's version, and what
exactly mean "netload" not working, so that some can help find an anwser.
"Randy Richardson" wrote in message
news:5400671@discussion.autodesk.com...
It seems that the only time the netload command works is when AutoCAD is
opened by Visual Studio.
Anyone have any idea what I'm doing wrong?
Since the only net DLL's I have are ones that I compiled, it could be some
kind of compilation error too. None of the samples supplied with the SDK
seem to be pre-compiled. I should probably try netloading someone else's
DLL if I knew where to find one.
Thanks,
Randy Richardson
Hattiesburg, MS