I've gotten what should be a simple VB.NET problem regarding Selection Set Filters, but one which I can't figure out. When using selection set filters in the past, I've only needed to look for specific blocks or lines in specific layers but never both.
I'm trying to make a selection set which searches for an object called WALLSTUD -or- LINES in my WALLS1 & WALLS2 layers. I don't care what layer WALLSTUD is in, I just need to find them. I'd like to do this all with one selection set window.
I can do a selection set with one or the other, but I can't do one with both sets of criteria.
This works fine for selecting lines in the WALLS1 and WALLS2 layers.
acPF1.SetValue(New TypedValue(0, "LINE"), 0)
acPF1.SetValue(New TypedValue(DatabaseServices.DxfCode.Operator, "<or"), 1)
acPF1.SetValue(New TypedValue(8, "WALLS1"), 2)
acPF1.SetValue(New TypedValue(8, "WALLS2"), 3)
acPF1.SetValue(New TypedValue(DatabaseServices.DxfCode.Operator, "or>"), 4)
This works fine for my WALLSTUD objects
acPF1.SetValue(New TypedValue(0, "WALLSTUD"), 0)
I've tried all the different combination of AND & OR operators, but nothing seems to work. When I try to combine the two, 0 objects get selected in my selection set.
How do I combine these or do I need to create two filters?