Message 1 of 2
text & insertionpoint problem
Not applicable
09-23-2004
03:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hola
i got a code that selects the object in a acadfile then filters the "text"
objects. then i want to find out the insertion point of this text objects.
acadtext.insertionpoint is fine when u create a new text by using a code
that creates actext.
when i filter the same objects with "actext" i got nothing. i thought it has
to be the same with "text".
Sub exportdata()
Dim sset As AcadSelectionSet
Dim filtertype(0) As Integer
Dim filtervalue(0) As Variant
Dim yazi As String
Dim boy() As String
Dim nokta As Variant
On Error Resume Next
ThisDrawing.SelectionSets.Item("data").Delete
Set sset = ThisDrawing.SelectionSets.Add("data")
filtertype(0) = 0
filtervalue(0) = "text"
sset.SelectOnScreen filtertype, filtervalue
say = sset.Count
For i = 1 To say - 1
yazi = sset.Item(i).TextString
boy = Split(yazi, , , vbTextCompare)
nokta = sset.Item(i).InsertionPoint
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Next i
End Sub
when i try to print.debug nokta(i) i get nothing.
where is the mistake?
anyone can help
thnx.