问题2:为什么我写
Dim app As Autodesk.AutoCAD.Interop.AcadApplication _ = GetObject(, "Autocad.application")
或 Dim app As Autodesk.AutoCAD.Interop.AcadApplication _ = application.acadapplication 都能通过。
而写 Dim app As AcadApplication = application.acadapplication
却通不过?
另:好象在CAD中操纵EXCEL只能这样:
Dim ex As Excel.Application = GetObject(, "Excel.application")
(假设EXCEL已打开)