ktbjx Posted November 20, 2018 Posted November 20, 2018 (defun c:SEL1() (sssetfirst nil (ssget "_:L" (list (cons 62 1)))) (princ) ) is it possible to select 2 index colors?? like for this, i wan to add index 30 so thats 1 and 30?? Quote
marko_ribar Posted November 20, 2018 Posted November 20, 2018 Try this : (defun c:SEL1 () (sssetfirst nil (ssget "_:L" (list '(-4 . "<or") (cons 62 1) (cons 62 30) '(-4 . "or>")))) (princ) ) 1 Quote
Lee Mac Posted November 20, 2018 Posted November 20, 2018 Since your data is literal there is no need for the use of list & cons to evaluate the data, hence the entire ssget filter list may be a quoted literal - (defun c:SEL1() (sssetfirst nil (ssget "_:L" '((-4 . "<OR") (62 . 1) (62 . 30) (-4 . "OR>")))) (princ) ) For more information on the use of "<OR" "OR>", see here. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.