SelectionSet for more than 1 entity type

SelectionSet for more than 1 entity type

Anonymous
Not applicable
355 Views
4 Replies
Message 1 of 5

SelectionSet for more than 1 entity type

Anonymous
Not applicable
Hi All,
I am trying to make a selection set with more than one type of entity, say I
want to make a selectionset for only line, circle and arc when user
"selectfromscreen". But I can not. Anybody there to help me?
Thanx,
Soumen
0 Likes
356 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Check out this eample
http://code.acadx.com/howto/vb/selection_filter.htm
"Soumen Roy" wrote in message
news:FF6E74AA1428D11D01CF8D1A5AC5F65D@in.WebX.maYIadrTaRb...
> Hi All,
> I am trying to make a selection set with more than one type of entity, say
I
> want to make a selectionset for only line, circle and arc when user
> "selectfromscreen". But I can not. Anybody there to help me?
> Thanx,
> Soumen
>
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi again,
ya ya the link is right and works fine, BUT the process do not work for more
than one type of entity, just try like:

Dim Gtyp(0 to 1) as integer
Dim Gdata(0 to 1) as variant
Dim fType as variant
Dim fData as variant
Gtyp(0)=0: Gdata(0)="CIRCLE"
Gtyp(1)=0: Gdata(1)="LINE"
ftyp=gtyp:fdata=gdata
ss.SelectOnScreen fType, fData

Got it? You can not select more than one type of entities like this. why?

Thanx,
Soumen


Mark Gardiner wrote in message
news:7E53DA6CD85398C815B75F138074EC77@in.WebX.maYIadrTaRb...
> Check out this eample
> http://code.acadx.com/howto/vb/selection_filter.htm
> "Soumen Roy" wrote in message
> news:FF6E74AA1428D11D01CF8D1A5AC5F65D@in.WebX.maYIadrTaRb...
> > Hi All,
> > I am trying to make a selection set with more than one type of entity,
say
> I
> > want to make a selectionset for only line, circle and arc when user
> > "selectfromscreen". But I can not. Anybody there to help me?
> > Thanx,
> > Soumen
> >
> >
>
>
0 Likes
Message 4 of 5

Anonymous
Not applicable
Soumen Roy wrote:

> Gtyp(0)=0: Gdata(0)="CIRCLE"
> Gtyp(1)=0: Gdata(1)="LINE"

When you have multiple values for a single group code, you can either
concatenate them or use grouping operators:

Gtyp(0) = 0: Gdata(0) = "CIRCLE, LINE"

or

Gtyp(0) = -4: Gdata(0) = " Gtyp(1) = 0: Gdata(1) = "CIRCLE"
Gtyp(2) = 0: Gdata(2) = "LINE"
Gtyp(3) = -4: Gdata(3) = "OR>"

For more information on grouping values in a selections set filter,
refer to the AutoLISP online help. The topic "Logical Grouping of Filter
Tests" is what you're after. While you're at it, the help on the SSGET
function also contains links explaining the use of wild-card pattern
matching and relational tests in a selection set filter. They're at the
very bottom of the page.

Good luck. If you have any more questions, be sure to post.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thank you Frank,

It is working fine, thank you so much.

Soumen
Frank Oquendo wrote in message
news:B607930D3EB25D550C5ED767CCA48DC9@in.WebX.maYIadrTaRb...
> Soumen Roy wrote:
>
> > Gtyp(0)=0: Gdata(0)="CIRCLE"
> > Gtyp(1)=0: Gdata(1)="LINE"
>
> When you have multiple values for a single group code, you can either
> concatenate them or use grouping operators:
>
> Gtyp(0) = 0: Gdata(0) = "CIRCLE, LINE"
>
> or
>
> Gtyp(0) = -4: Gdata(0) = " > Gtyp(1) = 0: Gdata(1) = "CIRCLE"
> Gtyp(2) = 0: Gdata(2) = "LINE"
> Gtyp(3) = -4: Gdata(3) = "OR>"
>
> For more information on grouping values in a selections set filter,
> refer to the AutoLISP online help. The topic "Logical Grouping of Filter
> Tests" is what you're after. While you're at it, the help on the SSGET
> function also contains links explaining the use of wild-card pattern
> matching and relational tests in a selection set filter. They're at the
> very bottom of the page.
>
> Good luck. If you have any more questions, be sure to post.
>
> --
> There are 10 kinds of people. Those who understand binary and those who
> don't.
>
> http://code.acadx.com
> (Pull the pin to reply)
>
>
0 Likes