Hi,
I have my custom arx and a VC DLL that I use in AutoCAD.
I load my arx via the following method
1) The path at which my ARX and custom DLL reside is appended to the support path
[HKCU\Software\Autodesk\AutoCAD\R17.1\ACAD-6007:409\Profiles\<<ACADE>& #38; #38; gt;\General]
"ACAD"="existing_paths;mypath_added"
After this when I startup AutoCAD 2008 or AutoCAD Mechanical 2008, everything works fine as expected
But whenever I load my custom arx in ACADE, upon startup I get the following messages at the command line
<COMMANDLINE_MESSAGES_BEGIN>
Customization file loaded successfully. Customization Group: ACAD
Customization file loaded successfully. Customization Group: IMPRESSION
Regenerating model.
Initializing VBA System...
Loading VBA startup file...
D:\CAD_Packages\Autodesk\Acade 2008\Acade\acade.arx cannot find a dll or other file that it needs
AutoCAD menu utilities loaded.
AutoCAD Electrical menu utilities ; error: no function definition:
WD_ARX_FORMAT_PATH
Command: COMMANDLINE
Command: acenav
Unknown command "ACENAV". Press F1 for help.
<COMMANDLINE_MESSAGES_END>
This problem is also seen in AutoCAD Electrical 2009
I see that in my custom arx, if I load my VC Dll via the follwing, only then the problem occurs. If I donot load my custom dll (only load arx) everything works fine.
I do the following in my AcRx::kInitAppMsg of my custom arx
m_libraryHandle = LoadLibrary(ACADCUSTOM_DLL);
Any help in this regard would be appreciated.
Following is my configuration
WinXP SP2
AutoCAD Electrical 2008, B.51.0 (UNICODE)
Service Pack 0
This problem is seen only in AutoCad Electrical not in Vanilla AutoCAD or AutoCAD Mechanical
Please find attached zip file containing the complete arx source code as well as the executable for which the issue is reproducible at my end
Please do the following
-Extract the contents of the zip file to a temp location (say "d:\Temp")
-now you should be having a directory named "TextArx2" in "d:\temp"
-you should find an arx at the following path "d:\temp\TextArx2\debug\TextArx2.arx"
To run/test the application do the following
1. add the following key to the registry
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.1\ACAD-6007:409\Applications\A cadAdapter]
"LOADER"="D:\\Temp\\TestArx2\\Debug\\TestArx2.arx"
"LOADCTRLS"=dword:00000006
2. append the arx path to the support path via registry
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.1\ACAD-6007:409\Profiles\<& lt;ACADE>>\General]
"ACAD"="EXISTINGPATH;D:\\temp\\TestArx2\\Debug\\;"
3.Launch Autocad Electrical 2008, watch the command prompt for error
"Customization file loaded successfully. Customization Group: ELECTRICAL
Customization file loaded successfully. Customization Group: ACAD
Customization file loaded successfully. Customization Group: IMPRESSION
Regenerating model.
Initializing VBA System...
Loading VBA startup file...
D:\CAD_Packages\Autodesk\Acade 2008\Acade\acade.arx cannot find a dll or other file that it needs.
AutoCAD menu utilities loaded.
AutoCAD Electrical menu utilities ; error: no function definition:
WD_ARX_FORMAT_PATH
"