选择集过滤器问题
<p>Public Sub CreateSSetFilter(ByRef filterType As Variant, ByRef filterData As Variant, ParamArray filter())<br/>If UBound(filter) Mod 2 = 0 Then<br/> MsgBox "Fileter 参数无效"<br/> Exit Sub</p><p>End If</p><p>Dim fType As Integer<br/>Dim fData As Variant<br/>Dim count As Integer<br/>count = (UBound(filter) + 1) / 2<br/>ReDim fType(count - 1)<br/>ReDim fData(count - 1)<br/>Dim i As Integer<br/>For i = 0 To count - 1<br/> fType(i) = fType(2 * i)<br/> fData(i) = fData(2 * i + 1)<br/> <br/>Next i</p><p>filterType = fType<br/>filterData = fData</p><p></p><p></p><p>有没有人能帮我看看这段代码中,选择集过滤器的数组的维数如何确定的?怎么规定的?</p> <p></p><p>请看autocadVBA二次开发教程 第65页和129页,有详细的介绍,或按此要点在网上找一下。</p><p> fType(0) = -4</p><p> fType(0) = 0 是图元, 8--图层 </p><p>fData(0) 可以是line 或图层名<br/></p>
页:
[1]