给你发个sample吧,先引用以下命名空间
dll去sdk中引用
-
- Imports Autodesk.AutoCAD.Interop.Common
- Imports Autodesk.AutoCAD.Interop
- Dim acadApp As AcadApplication = Application.AcadApplication
- Private Thisdrawing As AcadDocument =Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.AcadDocument
|