KRBeckman Posted July 16, 2010 Posted July 16, 2010 I'm wondering if there is a way to remove an entire selection set from another selection set... Here's my situation I'm writing a lisp that will take everything that meets a particular critieria: (setq ss (ssget "_x" (list (cons 0 "3dface") (cons 8 lay) (cons 410 "Model")))) Then I'm copying everything from that selection set to a different location. After that I need to apply a separate function to everything that meets that same criteria, minus what was there originally. Here's what I was trying but its not working: (ssrevfc (ssdel ss (ssget "_x" (list (cons 0 "3dface") (cons 8 lay) (cons 410 "Model"))))) I'm guessing its becasue ss is a selection set and not an entity. Is there a way to do this? Quote
KRBeckman Posted July 16, 2010 Author Posted July 16, 2010 well, if I would have done a little more searching I could have found this: http://www.afralisp.net/autolisp/tutorials/selection-sets.php And taylored it to make: (repeat (sslength ss1) (ssdel (ssname ss1 ct) ss2) (setq ct (1+ ct))) Chalk another one up to laziness. Quote
lamensterms Posted May 7, 2015 Posted May 7, 2015 Old thread, but wanted to say thanks for posting your solution KRBeckman. It came in handy. Quote
KRBeckman Posted May 7, 2015 Author Posted May 7, 2015 No problem... Glad it could help someone else too! 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.