chain selection with layer filter

chain selection with layer filter

robert06
Collaborator Collaborator
1,549 Views
9 Replies
Message 1 of 10

chain selection with layer filter

robert06
Collaborator
Collaborator

There is this great lisp of chain-selecting objects by Lee-Mac http://www.lee-mac.com/chainsel.html

How to add layer filter to select objects only on layer of the picked object?

 

 

0 Likes
Accepted solutions (1)
1,550 Views
9 Replies
Replies (9)
Message 2 of 10

hmsilva
Mentor
Mentor

Hi Robert,

 

Lee Mac's 'ChainSelV1-0.lsp', use a selection filter 'sf' in the ssget function.
To not have to test all objects layer inside the 'repeat' function, I would suggest to change the selection order, first test the 'en' section set using the 'sf' filter, get the layer associated to the selected object, pass it to a second selection filter, and apply this selection filter to the 's1' selection set...

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 3 of 10

robert06
Collaborator
Collaborator

Thank you and sorry for replying so late, I took me some time to study this, no luck yet.

0 Likes
Message 4 of 10

hmsilva
Mentor
Mentor

@robert06 wrote:

Thank you and sorry for replying so late, I took me some time to study this, no luck yet.


Hi Robert!

 

Did you try my previous suggestion?

 

Henrique

EESignature

0 Likes
Message 5 of 10

robert06
Collaborator
Collaborator

Hi, to be honest, it goes off my skills.

0 Likes
Message 6 of 10

hmsilva
Mentor
Mentor

@robert06 wrote:

Hi, to be honest, it goes off my skills.


Ok!

 

Robert,

if no one step in, tonight, I'll see what I can do.

 

Henrique

EESignature

0 Likes
Message 7 of 10

hmsilva
Mentor
Mentor
Accepted solution

@robert06 wrote:

Hi, to be honest, it goes off my skills.


Hi Robert,

 

the attached 'ChainSelV1-0_h1.lsp' was modified by me, from Lee Mac's 'Chain Selection - ChainSelV1-0.lsp', to perform a chain selection by layer, I did change the original command name from 'cs' to 'csl'.

 

Hope this helps,
Henrique

 

EESignature

Message 8 of 10

robert06
Collaborator
Collaborator

Perfect, tested.

Thank you, Henrique!

 

Robert

0 Likes
Message 9 of 10

hmsilva
Mentor
Mentor

You're welcome, Robert!
Glad I could help

Henrique

EESignature

0 Likes
Message 10 of 10

DJGinAZ
Advocate
Advocate
Almost 10 years later and another thank you coming your way, Henrique!