I've been sucessfully using a startup script to Autoload (into AutoCAD) the net Assembly currently being edited/Debugged in VS2005.
In vs2005, from the Project Properties, make the following changes :-
. Add the Start Action -> external Program : < qualified path to Acad.exe >
. Add the Start Options -> Working directory : Essentially a 'start-in' folderPath. I use it for test drawings for all projects, data and the Startup script for each project
. Add the Start Options -> Command Line Arguments : Similar to the Command line switches used in batch files and from Icons. [ refer Acad help ]. The last parameters will be :- /b <project script file qualified path&Name >
. Build a script file in the Working directory with a unique name to be used with a specific project. [ see sample ]
When you start debugging from VS2005 ( using F5 or from the menu ) Autocad will start and the script file will execute, NETLOADing the nominated DLL.
As a result of the ScriptFile Name being saved in the Project properties, when you change projects and start debugging, the correct DLL will always be loaded
Feedback appreciated ..
The sample Script code :
;; LayoutsAndPlots.scr
netload
"k:/Visual Studio 2005 Projects/_cad/CsMgdAcad-LayoutsAndPlots/CsMgdAcad-Template1/BIN/DEBUG/CsMgdAcad-LayoutsAndPlots.dll"
;;;;
and some piccys :-