Thanks in advance,
jake
--
----------------------------------------------------
Junichi Yoda
mailto:yo...@be.mbn.or.jp
My Home Page:
http://plaza13.mbn.or.jp/~yoda/AutoCADVBAEnglish
http://www.city.yokosuka.kanagawa.jp/speed/mypage/yoda-j
----------------------------------------------------
Jacob Dinardi <jdin...@jps.net> wrote in message
news:7navhm$fu...@adesknews2.autodesk.com...
You can use something like this :
Dim Sset as AcadSelectionSet
Dim FilterType(0) as integer
Dim FilterData(0) as variant
Dim TextObject as AcadText
FilterType(0)=0
FilterData(0)="TEXT"
Set Sset=Document.SelectionSets.Add("MySet")
Sset.SelectOnScreen FilterType,FilterData
for each TextObject in Sset
' handle you text objects here...
next
Regards,
Arno van Eeuwen
Thanks again all!
jake
Urvan Pourier wrote in message <379C11C3...@inter.nl.net>...
Please find a sample code below, which selects only TEXT entities on the
screen.
Sub test()
Dim ss As AcadSelectionSet
Dim f_type(0) As Integer
Dim f_data(0) As Variant
Dim ftype As Variant
Dim fdata As Variant
f_type(0) = 0
f_data(0) = "TEXT"
ftype = f_type
fdata = f_data
Set ss = ThisDrawing.SelectionSets.Add("TST")
ss.SelectOnScreen ftype, fdata
MsgBox ss.count
ss.Delete
End Sub
Hope this helps.
Cheers,
Thilak
Can you show us some code ?
Arno
Dim MySS as AcadSelectionSet
Dim Ftype as Integer
Dim Fdata
Ftype = 0
Fdata = "Text"
Set MySS = ThisDrawing.SelectionSets.Add("Get_Text")
MySS.SelectOnScreen Ftype, Fdata
I will try again using the code supplied to me here.
Thanks again,
jake
Urvan Pourier wrote in message <379DBFA4...@inter.nl.net>...
jake
Jacob Dinardi wrote in message <7no44b$2s...@adesknews2.autodesk.com>...
Thilak
Jacob Dinardi wrote in message <7nqn3f$6e...@adesknews2.autodesk.com>...
jake
Thilaknath Rao [Developer Consulting Group, Autodesk] wrote in message
<7nra1i$70...@adesknews2.autodesk.com>...