Hello,
Since the MText entities in AutoCAD’s VBA doesn’t support the .Explode method I’m trying to get them converted to Text type by using SendCommand – something that avoided at all in the past, so lack of clues.
Can someone tell me how to pass the current entity from a selection set to SendCommand statement?
Dim ItemsSSet As AcadSelectionSet
Dim FType(0) As Integer
Dim FData(0) As Variant
Dim theItem As Variant
FType(0) = 0
FData(0) = "MTEXT"
Set ItemsSSet = CrDrawing.SelectionSets.Add("SS1")
ItemsSSet.Select Mode:=5, FilterType:=FType, FilterData:=FData
For Each theItem In ItemsSSet
CrDrawing.SendCommand "EXPLODE" & vbCr & ????? & vbCr
Next theItem
Thank you!