Variable in ssget filter?

Variable in ssget filter?

Anonymous
Not applicable
2,462 Views
2 Replies
Message 1 of 3

Variable in ssget filter?

Anonymous
Not applicable

Is there any way to use a variable with ssget?

 

I'm using a while statement and I want to select all items in certain layers and place them in a selection set to use in the next part of the program.

 

(ssget "_A" '((6 . variable)))

 

Cheers

0 Likes
Accepted solutions (1)
2,463 Views
2 Replies
Replies (2)
Message 2 of 3

Ranjit_Singh
Advisor
Advisor
Accepted solution

Yes. Use cons

(ssget "_A" (list (cons 6 variable)))

 

Be aware to take off quote and pass list

Message 3 of 3

Anonymous
Not applicable

Thanks perfect!

0 Likes