SelectionSet

SelectionSet

Anonymous
Not applicable
241 Views
4 Replies
Message 1 of 5

SelectionSet

Anonymous
Not applicable
Hello

In a SelectionSet, i know select all objects in the layer "MYLAYER"

In an other selectionSet, i know select all blocks named "MYBLOCK"

But i don't know select in a SelectionSet all the blocks named "MYBLOCK"
AND are ALSO in the layer "MYLAYER"

object.Select Mode[, Point1][, Point2][, FilterType][, FilterData]

How define the FilterType, and FilterData to do that

Thanks for your help

Bernard
France
0 Likes
242 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Include multiple fields and they will automatically be AND'ed together. For
example, to gather all block inserts named "MYBLOCK" on layer "MYLAYER":

Dim fType(2) As Integer, fData(2) As Integer

fType(0) = 8: fData(0) = "MYLAYER"
fType(1) = 0: fData(1) = "INSERT"
fType(2) = 2: fData(2) = "MYBLOCK"

You can also use group code -4 along with OR and AND to construct more
complex filters. Look up selection set filters in the online LISP help for
detailed information.

--
Attitudes are contagious. Is yours worth catching?
http://www.acadx.com

"Bernard Flavignard" wrote in message
news:ef307ff.-1@WebX.SaUCah8kaAW...
> Hello
>
> In a SelectionSet, i know select all objects in the layer "MYLAYER"
>
> In an other selectionSet, i know select all blocks named "MYBLOCK"
>
> But i don't know select in a SelectionSet all the blocks named "MYBLOCK"
> AND are ALSO in the layer "MYLAYER"
>
> object.Select Mode[, Point1][, Point2][, FilterType][, FilterData]
>
> How define the FilterType, and FilterData to do that
>
> Thanks for your help
>
> Bernard
> France
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Frank

Thank you very much for your help
I use the first method

With Lisp i use group code -4, but with VBA i don't know how to do it

Bernard

Frank Oquendo a écrit dans le message :
ef307ff.0@WebX.SaUCah8kaAW...
> Include multiple fields and they will automatically be AND'ed together.
For
> example, to gather all block inserts named "MYBLOCK" on layer "MYLAYER":
>
> Dim fType(2) As Integer, fData(2) As Integer
>
> fType(0) = 8: fData(0) = "MYLAYER"
> fType(1) = 0: fData(1) = "INSERT"
> fType(2) = 2: fData(2) = "MYBLOCK"
>
> You can also use group code -4 along with OR and AND to construct more
> complex filters. Look up selection set filters in the online LISP help for
> detailed information.
>
> --
> Attitudes are contagious. Is yours worth catching?
> http://www.acadx.com
>
> "Bernard Flavignard" wrote in message
> news:ef307ff.-1@WebX.SaUCah8kaAW...
> > Hello
> >
> > In a SelectionSet, i know select all objects in the layer "MYLAYER"
> >
> > In an other selectionSet, i know select all blocks named "MYBLOCK"
> >
> > But i don't know select in a SelectionSet all the blocks named "MYBLOCK"
> > AND are ALSO in the layer "MYLAYER"
> >
> > object.Select Mode[, Point1][, Point2][, FilterType][, FilterData]
> >
> > How define the FilterType, and FilterData to do that
> >
> > Thanks for your help
> >
> > Bernard
> > France
> >
>
0 Likes
Message 4 of 5

Anonymous
Not applicable
Use it almost exactly the same way:

fType(0) = 8: fData(0) = "MYLAYER"
fType(1) = -4: fData(1) = " fType(2) = -4: fData(2) = " fType(3) = 0: fData(3) = "INSERT"
fType(4) = 2: fData(4) = "MYBLOCK"
fType(5) = -4: fData(5) = "AND>"
fType(6) = 0: fData(6) = "LINE"
fType(7) = -4: fData(7) = "OR>"

There's a routine named BuildFilter in the VB section of my web site that
might make this a little easier, just pass it two variants and your filter
values like so:
BuildFilter fType, fData, 8, "MYLAYER", -4, " "", _
0, "LINE", -4, "OR>"

Then you can use the variants (now filled with arrays) for your filter. Hope
this helps.

--
Attitudes are contagious. Is yours worth catching?
http://www.acadx.com

"Bernard Flavignard" wrote in message
news:ef307ff.1@WebX.SaUCah8kaAW...
> Frank
>
> Thank you very much for your help
> I use the first method
>
> With Lisp i use group code -4, but with VBA i don't know how to do it
>
> Bernard
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Frank

Bernard

Frank Oquendo a écrit dans le message :
ef307ff.2@WebX.SaUCah8kaAW...
> Use it almost exactly the same way:
>
> fType(0) = 8: fData(0) = "MYLAYER"
> fType(1) = -4: fData(1) = " > fType(2) = -4: fData(2) = " > fType(3) = 0: fData(3) = "INSERT"
> fType(4) = 2: fData(4) = "MYBLOCK"
> fType(5) = -4: fData(5) = "AND>"
> fType(6) = 0: fData(6) = "LINE"
> fType(7) = -4: fData(7) = "OR>"
>
> There's a routine named BuildFilter in the VB section of my web site that
> might make this a little easier, just pass it two variants and your filter
> values like so:
> BuildFilter fType, fData, 8, "MYLAYER", -4, " > "", _
> 0, "LINE", -4, "OR>"
>
> Then you can use the variants (now filled with arrays) for your filter.
Hope
> this helps.
>
> --
> Attitudes are contagious. Is yours worth catching?
> http://www.acadx.com
>
> "Bernard Flavignard" wrote in message
> news:ef307ff.1@WebX.SaUCah8kaAW...
> > Frank
> >
> > Thank you very much for your help
> > I use the first method
> >
> > With Lisp i use group code -4, but with VBA i don't know how to do it
> >
> > Bernard
>
0 Likes