刚刚学起.net开发CAD。试了一个例子,可不可以不每次新打开一个CAD程序?能不能在已打开的CAD程序上调试?怎么处理?
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Runtime
Public Class Class1
<CommandMethod("HelloWorld")> Public Sub HelloWorld()
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
ed.WriteMessage("Hello World!!")
End Sub
End Class