Dim AcadApp As AcadApplication
Dim AcadDoc As AutoCAD.AcadDocument
On Error Resume Next
Set AcadApp = CreateObject(, "AutoCAD.Application")
AcadApp.Visible = True
Set AcadDoc = AcadApp.Documents.Open("E:\气缸定位具.dwg")
Set acaddoc = acadapp.ActiveDocument