请问:使用DWGdirectX odaX 提取DWG数据有何用处?? 只能对你提供的示例数据,提取到"过热器集箱总图",对于其它dwg文件,不起作用. 从以下程序看不出实际用途在哪里??请说述.谢谢 Option Explicit Dim WithEvents OdaHost As OdaHostApp Dim WithEvents odaApp As AcadApplication Dim odaDoc As AcadDocument Private Sub Command1_Click() Set OdaHost = CreateObject("DWGdirectX.OdaHostApp") Set odaApp = OdaHost.Application Dim sFile As String Dim val As Variant With dlgCommonCtrl .DialogTitle = "Open" .CancelError = True .Filter = "Autocad Drawing (*.dwg)|*.dwg" .ShowOpen If Len(.FileName) = 0 Then Exit Sub End If sFile = .FileName End With DoEvents Set odaDoc = odaApp.Documents.Open(sFile) DoEvents |