ILoveMadoka Posted July 9, 2021 Posted July 9, 2021 To create a selection set of objects of a specific color is pretty straight forward (if (setq ss1 (ssget "_X" '((62 . 5)))) I want to create a selection set if the color is not BYLAYER (someone has manually changed the color) Quote
Tharwat Posted July 9, 2021 Posted July 9, 2021 (setq ss1 (ssget '((-4 . "<NOT") (62 . 256) (-4 . "NOT>")))) 1 1 Quote
confutatis Posted July 9, 2021 Posted July 9, 2021 (setq ss1 (ssget "X" '((-4 . "<NOT") (62 . 256) (-4 . "NOT>")))) Quote
ILoveMadoka Posted July 9, 2021 Author Posted July 9, 2021 can I add another facet to this question? Can 2 different colors be selected via ssget X ? This doesn't work.. (I was trying..) (ssget "_X" '((62 . 7) (62 . 8)))) Quote
ILoveMadoka Posted July 9, 2021 Author Posted July 9, 2021 ps: and thank you for the responses! Quote
confutatis Posted July 9, 2021 Posted July 9, 2021 (ssget "_X" '((-4 . "<OR") (62 . 7) (62 . 8) (-4 . "OR>"))) 1 Quote
pBe Posted July 9, 2021 Posted July 9, 2021 Not BYLAYER (setq ss1 (ssget '((-4 . "!=")(62 . 256)))) Selection of color 7 to 11 (setq ss1 (ssget "X" '((-4 . ">=") (62 . 7) (-4 . "<=") (62 . 11)))) 2 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.