try<br> try<br> Acad := GetActiveOleObject('Autocad.Application');<br> except<br> on EOleSysError do<br> Acad := CreateOleObject('Autocad.Application');<br> end;<br> except<br> halt;<br> end;<br><br> Acad.Visible := True;<br> Title := Acad.Caption;<br> acad_Hwnd := Findwindow(nil, PChar(Title));<br> ShowWindow(ACAD_HWND, SW_SHOWMAXIMIZED);<br> SetForegroundWindow(ACAD_HWND);