Hi!
I have an difficulty in getting text's location value.
Any help, I'll appreciate it.
Following code does'nt have any error.
Just add your appropriate code to my one,please.
Thank you in advance.
Public Class class1
_
Public Sub eras()
Try
Dim ed As Editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor
Dim values() As TypedValue = {New TypedValue(0, "Text")}
Dim sfilter As New SelectionFilter(values)
Dim res As PromptSelectionResult = ed.SelectAll(sfilter)
Dim i As Integer
Dim SS As Autodesk.AutoCAD.EditorInput.SelectionSet = res.Value
Dim idarray As ObjectId() = SS.GetObjectIds()
Dim objIdColl As New ObjectIdCollection
For i = 0 To idarray.Length - 1
objIdColl.Add(idarray(i))
Next
Finally
End Try
End Sub
End Class