Code:
Sub XplodeObj()On Error Resume Next
Dim RetObj As AcadMText
Dim BasePnt As Variant
Dim newText As AcadText
Dim TextString As String
Dim txtHeight As Double
Dim InsPoint(0 To 2) As Double
ThisDrawing.Utility.GetEntity RetObj, BasePnt, "Select objects: "
TextString = RetObj.TextString
txtHeight = RetObj.Height
InsPoint(0) = RetObj.InsertionPoint(0)
InsPoint(1) = RetObj.InsertionPoint(1) - txtHeight
InsPoint(2) = RetObj.InsertionPoint(2)
RetObj.Delete
Dim i As Integer
Dim Linha, Letra As String
Linha = ""
For i = 0 To Len(TextString)
Letra = Mid(TextString, i, 1)
If Letra = "\" Then
Set newText = ThisDrawing.ModelSpace.AddText(Linha, InsPoint,
txtHeight)
InsPoint(1) = InsPoint(1) - txtHeight * 1.66666666666667
i = i + 1
Linha = ""
Else
Linha = Linha + Letra
End If
Next
Set newText = ThisDrawing.ModelSpace.AddText(Linha, InsPoint, txtHeight)
End Sub