How to use OR filter in selectionset

How to use OR filter in selectionset

Anonymous
Not applicable
416 Views
4 Replies
Message 1 of 5

How to use OR filter in selectionset

Anonymous
Not applicable
Hi Guys,

I want to select the object which has XData "A" or XData "B"

My code is

'Selectiong Set
Dim varXType(3) As Integer
Dim varXData As Variant

Set objSSet = CADdoc.SelectionSets.Add(sSetName)
'XData
ReDim varXData(3)
varXType(0) = -4: varXData(0) = " varXType(1) = 1001: varXData(1) = "A"
varXType(2) = 1001: varXData(2) = "B"
varXType(3) = -4: varXData(3) = "Or >"

objSSet.Select acSelectionSetAll, , , varXType, varXData

the Error is
Invalid argument filter list in Select
How can I change it

Thanks
0 Likes
417 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
why I can't post the full code?
0 Likes
Message 3 of 5

Anonymous
Not applicable
My full code is in the attachment

Error message is
Invalid argument filter list in select

How can solve it
0 Likes
Message 4 of 5

Anonymous
Not applicable
I don't think you can use the operators on xdata application names.

You can use "A,B" for the value of a single 1001 group to get the same

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5865334@discussion.autodesk.com...
My full code is in the attachment

Error message is
Invalid argument filter list in select

How can solve it
0 Likes
Message 5 of 5

Anonymous
Not applicable
try this ...

Dim varXType(3) As Integer
Dim varXData As Variant
Dim sSetName As String
Dim objSSet As AcadSelectionSet

sSetName = "Test"

Set objSSet = ThisDrawing.SelectionSets.Add(sSetName)

'XData
ReDim varXData(3)

varXType(0) = -4: varXData(0) = " varXType(1) = 1001: varXData(1) = "A"
varXType(2) = 1001: varXData(2) = "B"
varXType(3) = -4: varXData(3) = "or>"

objSSet.Select acSelectionSetAll, , , varXType, varXData


wrote in message news:5865334@discussion.autodesk.com...
My full code is in the attachment

Error message is
Invalid argument filter list in select

How can solve it
0 Likes