<DllImport("user32.dll")> _
Public Shared Function SetFocus(ByVal hwnd As IntPtr) As IntPtr
End Function
''' <summary>
''' 激活AutoCAD窗口
''' </summary>
''' <remarks></remarks>
Public Shared Sub ApplicationSetFocus()
ApplicationTool.SetFocus(Autodesk.AutoCAD.ApplicationServices.Application.MainWindow.Handle)
End Sub