T
Tony M
Hi All,
LISP guy here trying to learn VBA. Can anyone please tell me why this
bit of code won't work. My selection set comes up empty. I am trying to
select all objects in a drawing that are on 2 specific layers.
Thanks in advance
Tony M.
Private Sub Test()
Dim sscoords As AcadSelectionSet
Dim FilterType(3) As Integer
Dim FilterData(3) As Variant
Set sscoords = ThisDrawing.SelectionSets.Add("SS1")
FilterType(0) = -4
FilterData(0) = "<AND"
FilterType(1) = 8
FilterData(1) = "Layer-1
FilterType(2) = 8
FilterData(2) = "Layer-2"
FilterType(3) = -4
FilterData(3) = "AND>"
sscoords.Select acSelectionSetAll, , , FilterType, FilterData
End Sub
LISP guy here trying to learn VBA. Can anyone please tell me why this
bit of code won't work. My selection set comes up empty. I am trying to
select all objects in a drawing that are on 2 specific layers.
Thanks in advance
Tony M.
Private Sub Test()
Dim sscoords As AcadSelectionSet
Dim FilterType(3) As Integer
Dim FilterData(3) As Variant
Set sscoords = ThisDrawing.SelectionSets.Add("SS1")
FilterType(0) = -4
FilterData(0) = "<AND"
FilterType(1) = 8
FilterData(1) = "Layer-1
FilterType(2) = 8
FilterData(2) = "Layer-2"
FilterType(3) = -4
FilterData(3) = "AND>"
sscoords.Select acSelectionSetAll, , , FilterType, FilterData
End Sub