找到了,还可以,功能差不多,可以读取文件中的全部字符 Dim i As Integer Dim retObj As Object With acadApp.ActiveDocument.ModelSpace For i = 0 To .Count - 1 Step 1 Set retObj = .Item(i) If retObj.EntityType = acText Or retObj.EntityType = acMtext Then print retObj.TextString End If Next i End With |