VB启动acad。

前端之家收集整理的这篇文章主要介绍了VB启动acad。前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Public Sub StartAcad() On Error Resume Next Set AcadApp = GetObject(,"AutoCAD.Application") If Err Then Err.Clear Set AcadApp = CreateObject("AutoCAD.Application") If Err Then MsgBox Err.Description Exit Sub End If End If Set AcadDoc = AcadApp.ActiveDocument Set MoSpace = AcadDoc.ModelSpace Set PaSpace = AcadDoc.PaperSpace Set AcadUtil = AcadDoc.Utility AcadApp.Visible = True End Sub 原文链接:https://www.f2er.com/vb/258424.html

猜你在找的VB相关文章