可以用Explode炸开,下面是炸开MText的例子,可以借鉴一下
Private function MToS(MText As Variant) As Variant '炸开MText并返回一个Text数组 Dim i As Integer Dim ss As AcadSelectionSet Dim pTexts() As AcadObject ThisDrawing.ActiveSelectionSet.Clear ThisDrawing.SendCommand "Explode" & vbCr & "(handent " & Chr(34) _ & MText.Handle & Chr(34) & ")" & vbCr & vbCr
set ss = ThisDrawing.ActiveSelectionSet ReDim pTexts(ss.Count - 1) As AcadObject For i = 0 To ss.Count - 1 Set pTexts(i) = ss(i) Next i MToS = pTexts End Function