Jump to content

Recommended Posts

Posted

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?

  • 4 years later...
Posted

Old thread, but wanted to say thanks for posting your solution KRBeckman. It came in handy.

Posted

No problem... Glad it could help someone else too!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...