My fault, test PC has 2006 so uninstalled and tried, failed, so repaired
2005 installation, worked.
Batch files - Great solution CArps
Laurence
"Laurence Skoropinski" wrote in message
news:4851451@discussion.autodesk.com...
Can you just confirm the version numbers please. I have v16.2.54.0 which I
assume is 2006 and version 16.1.63.0 which I assume is 2005?
Laurence
wrote in message news:4851112@discussion.autodesk.com...
Sure, the first two steps you will have to do manually to setup for your
compiles/builds.
1) Locate the Autodesk .dll files in the GAC. You cannot use windows
explorer for this, you have to use the good old command line with cd and
dir.
CD \winnt\assembly\GAC
xcopy *.* c:\temp\junk /S
This will copy all the subdirs and all dlls in the gac so you can get at
them with explorer.
2) Find the appropriate Autodesk folders and copy the dlls to a nice
location for your builds for ease of use.You will need a folder for each
version.
Now that we have the dotnet dlls you can now setup for builds.
Assuming we are building the 2006 version of the program:
3) Execute the unregister batch file for 2005 (shown below)
cd Assembly
cd ADT45
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll /u
%Framework%\regasm Autodesk.AEC.Interop.Base.dll /u
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll /u
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll /u
%Framework%\regasm Autodesk.AutoCAD.Interop.dll /u
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll /u
cd ..
cd ..
if (%1)==(AUTO) goto :EOF
pause
4) Execute the register batch file for 2006 (shown below)
cd Assembly
cd ADT47
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll
%Framework%\regasm Autodesk.AEC.Interop.Base.dll
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll
%Framework%\regasm Autodesk.AutoCAD.Interop.dll
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll
cd ..
cd ..
if (%1)==(AUTO) goto :EOF
pause
There are 4 batch files, reg and unreg for 2005, reg and unreg for 2006.
Thist allows a developer to be on 2006 and we can build for both versions
(as long as he doesn't use any 2006 only features).