[求助]过滤桢同数据的问题
本帖最后由 作者 于 2006-11-6 17:43:07 编辑 <br /><br /> <P>Sub N12()</P><P> On Error Resume Next<BR> Dim ENT As AcadEntity<BR> Dim sset As AcadSelectionSet<BR> Dim objtext As AcadText<BR> On Error Resume Next<BR> If Not IsNull(ThisDrawing.SelectionSets.Item("TEXT")) Then<BR> Set sset = ThisDrawing.SelectionSets.Item("TEXT")<BR> sset.Delete<BR> End If<BR> Set sset = ThisDrawing.SelectionSets.Add("TEXT")<BR> <BR> Dim filtertype(0) As Integer<BR> Dim filterdata(0) As Variant<BR> <BR> filtertype(0) = 0<BR> filterdata(0) = "text"<BR> sset.selectonscreen filtertype, filterdata<BR> Dim count As Long<BR> count = sset.count<BR> <BR> Dim text1()<BR> ReDim text1(count)<BR> Dim i As Long<BR> For i = 0 To sset.count - 1<BR> Set text1(i) = sset.Item(i)<BR> Next<BR> MsgBox UBound(text1)<BR> ' For i = LBound(text1) To UBound(text1)<BR> 'MsgBox text1(i).TextString<BR> 'Next<BR> <BR> Dim newarray()<BR> newarray = getArray(text1)<BR> For i = LBound(text1) To UBound(text1)<BR> MsgBox newarray(i).TextString<BR> Next<BR> <BR>End Sub</P>
<P>此过程为何不能显示过滤后的字符?</P>
页:
[1]