My software used to connect to AutoCad2002 using the following code
cad2002 := AutoCAD2002_TLB.TOAcadApplication.Create(self);
(cad2002 as TOAcadApplication).Visible := true; //open autocad.
(cad2002 as
TOAcadApplication).Application.Set_WindowState(acMax);
sFile := ExtractFileDir(Application.ExeName) + '\AC2002.dwg';
(cad2002 as TOAcadApplication).Connect;
currDwg := (cad2002 as
TOAcadApplication).Documents.Open(sfile,true);
But now, it seems that the library Autocad_TLB for Autocad2007 doesn't
have the TAcadApplication, or an OleServer.
So do you have any idea how can I do this for Autocad2007 ?
Thanks!