在前面引用了下面 Imports Autodesk.AutoCAD.DatabaseServices Imports Autodesk.AutoCAD.Runtime Imports Autodesk.AutoCAD.ApplicationServices Imports Autodesk.AutoCAD.EditorInput Imports Autodesk.AutoCAD.Colors Imports Autodesk.AutoCAD.Geometry Imports Autodesk.AutoCAD.GraphicsInterface Imports Autodesk.AutoCAD.PlottingServices Imports Autodesk.AutoCAD.Windows Imports System.Runtime.InteropServices Imports DBTransMan = Autodesk.AutoCAD.DatabaseServices.TransactionManager Imports Autodesk.AutoCAD Imports Autodesk.AutoCAD.Interop Imports Autodesk.AutoCAD.Interop.Common Imports System.IO Imports System.Math Dim db As Database db = Application.DocumentManager.MdiActiveDocument.Database 无法获得当前活动AutoCAD文档所在的数据库,请还有那边要注意呢. 我的软件为:Auto Cad 2006 和
Visual Basic 2005 Express版 |