Message 1 of 6
Help, Selection set filter

Not applicable
05-09-2008
11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am trying to create a filtered selection set to capture
the block name(handle), unique id, and insertion points (x,y,z).
Attached code comes back empty.
Help.
Thanks
tpefilterstr = "name1,name2,name3,name4"
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<,
Dim tpearrayA(0 To 2) As Integer
Dim tpearrayB(0 To 2) As Variant
Dim tpefiltera As Variant
Dim tpefilterb As Variant
Dim tpefilterstr As String
For cntcb = 0 To 12
nulval = IsNull(tpecbarry(cntcb))
If (tpecbarry(cntcb) <> "" And nulval = False) Then
tpefilterstr = tpefilterstr & tpecbarry(cntcb) & ","
End If
Next
tpearrayA(0) = 2:
tpearrayB(0) = tpefilterstr
tpearrayA(1) = 5:
tpearrayA(2) = 10:
tpefiltera = tpearrayA
tpefilterb = tpearrayB
ThisDrawing.SelectionSets.Item("tpefilteredset").Select acSelectionSetAll, , , tpefiltera, tpefilterb
the block name(handle), unique id, and insertion points (x,y,z).
Attached code comes back empty.
Help.
Thanks
tpefilterstr = "name1,name2,name3,name4"
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<,
Dim tpearrayA(0 To 2) As Integer
Dim tpearrayB(0 To 2) As Variant
Dim tpefiltera As Variant
Dim tpefilterb As Variant
Dim tpefilterstr As String
For cntcb = 0 To 12
nulval = IsNull(tpecbarry(cntcb))
If (tpecbarry(cntcb) <> "" And nulval = False) Then
tpefilterstr = tpefilterstr & tpecbarry(cntcb) & ","
End If
Next
tpearrayA(0) = 2:
tpearrayB(0) = tpefilterstr
tpearrayA(1) = 5:
tpearrayA(2) = 10:
tpefiltera = tpearrayA
tpefilterb = tpearrayB
ThisDrawing.SelectionSets.Item("tpefilteredset").Select acSelectionSetAll, , , tpefiltera, tpefilterb