可先在VB中引用CAD,然后用如下语句解决:
On Error Resume Next
Set AcadApp = GetObject(, "AutoCAD.Application")
If Err Then
Err.Clear
Set AcadApp = CreateObject("AutoCAD.Application")
If Err Then
MsgBox "不能运行AutoCAD 2002,请检查安装是否正确。" & vbCrLf & "可先启动AutoCAD2002,再试本程序。", vbInformation, "提示"
Set AcadApp = Nothing
End
End If
End If
AcadApp.Visible = True