帮我看看代码,怎么不能选择?
On Error Resume Next<BR> Dim sstext As AcadSelectionSet<BR> Dim FilterType(0 To 5) As Integer<BR> Dim FilterData(0 To 5) As VariantSet sstext = ThisDrawing.SelectionSets.Add("SSS1")<BR> If Err Then<BR> Err.Clear<BR> Set sstext = ThisDrawing.SelectionSets.Item("SSS1")<BR> End If<BR> <BR> FilterType(0) = 0: FilterData(0) = "<or"<BR> FilterType(1) = 0: FilterData(1) = "LINE"<BR> FilterType(2) = 0: FilterData(2) = "Circle"<BR> FilterType(3) = 0: FilterData(3) = ">or"<BR> sstext.SelectOnScreen FilterType, FilterData
不能选择线了,看看什么问题?先谢了 Dim FilterType(0 To 3) As Integer<BR>Dim FilterData(0 To 3) As Variant Dim FilterType(0) As Integer<BR> Dim FilterData(0) As Variant
FilterType(0) = 0: FilterData(0) = Line,Circle"<BR> 谢谢<A name=64633><FONT color=#990000><B>lzh741206</B></FONT></A>斑竹 FilterData(0) = Line,Circle"<BR>为什么可以这样?不能FilterData(0 to 1)吗?
页:
[1]