ILoveMadoka Posted July 9, 2021 Share 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 Link to comment Share on other sites More sharing options...
Tharwat Posted July 9, 2021 Share Posted July 9, 2021 (setq ss1 (ssget '((-4 . "<NOT") (62 . 256) (-4 . "NOT>")))) 1 1 Quote Link to comment Share on other sites More sharing options...
confutatis Posted July 9, 2021 Share Posted July 9, 2021 (setq ss1 (ssget "X" '((-4 . "<NOT") (62 . 256) (-4 . "NOT>")))) Quote Link to comment Share on other sites More sharing options...
ILoveMadoka Posted July 9, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
ILoveMadoka Posted July 9, 2021 Author Share Posted July 9, 2021 ps: and thank you for the responses! Quote Link to comment Share on other sites More sharing options...
confutatis Posted July 9, 2021 Share Posted July 9, 2021 (ssget "_X" '((-4 . "<OR") (62 . 7) (62 . 8) (-4 . "OR>"))) 1 Quote Link to comment Share on other sites More sharing options...
ILoveMadoka Posted July 9, 2021 Author Share Posted July 9, 2021 Awesome! Thanks much! Quote Link to comment Share on other sites More sharing options...
pBe Posted July 9, 2021 Share 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 Link to comment Share on other sites More sharing options...
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.