I created a dll and wanted to auto netload it upon launch of AutoCAD Arch.
I have used the following instructions in
http://through-the-interface.typepad.com/through_the_interface/2006/09/automatic_loadi.html
"DESCRIPTION"="AutoNetloadDLL"
"LOADCTRLS"=dword:00000002
"MANAGED"=dword:00000001
"LOADER"="C:\MyApp\bin\Release\MyApp.dll"
However, when i typed in my commands for the dll, AutoCAD displayed Unknown Command "<Command Name>". Press F1 for help.
I have tried suggestions by people comments in the above link (i.e. setting acdbmgd.dll and acmgd.dll to Copy Local = False, restarting computer) , but I have done so, and the error still persists.
I also have used the method as suggested by writing a STARTUP lisp function to auto netload the dll file in http://www.cadtutor.net/forum/showth...hlight=netload
But the same error persists.
Would like to ask if anyone has encountered the same issue before, and can enlighten me on how to solve this problem?
I have used Process Explorer to check if acad.exe has loaded the DLL, and it did!
But the commands are not found.
When I manually netload the dll by typing the netload command and selecting the dll, there is no such issue. This only occurs to me when I tried the auto methods.
The methods only works so far if I launch acad.exe through Debug mode in VS2008.
Definitely need to auto netload the DLL for my application, when AutoCAD Arch startups.
I was looking at the post from Kean too.
If you scroll down, he adds this registry section to add the command.
Just wondering if you checked it.
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.0\ACAD-5001:409\Applications\MyTestApplication\Commands]
"TST"="TST"