0 Members and 1 Guest are viewing this topic.
(defun c:test ( / ) (setq ss (ssget "_x" (list (cons 8 "TESTLAYER") (cons -4 "<AND") (cons 62 4) (cons 62 6) (cons -4 "AND>")))) (sssetfirst nil ss)(princ))
I want apples AND they can be green OR red.
see LISP drives me crazy, the logic is wrong in my head, OR to me would be one "or" the other, (not both)AND would indicate color 1 "and" color 2 (both together)Anyway, RonJon, your ninja skill have helped me once again, thank you very much...
Use ORCode - Auto/Visual Lisp: [Select](setq ss (ssget "_x" '((8 . "TESTLAYER") (-4 . "<OR") (62 . 4) (62 . 6) (-4 . "OR>"))))Your code is looking for items that have two different colors which cannot happen.
the logic is wrong in my head, OR to me would be one "or" the other, (not both)