Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/25/2023 in all areas

  1. Rather than comparing entity handles, you can simply use ssmemb, e.g.: (defun subtract_ss ( ss1 ss2 / ent idx ) (repeat (setq idx (sslength ss1)) (setq idx (1- idx) ent (ssname ss1 idx) ) (if (ssmemb ent ss2) (ssdel ent ss1)) ) ss1 ) Or, alternatively - (defun subtract_ss ( ss1 ss2 ) (vl-cmdf "_.select" ss1 "_r" ss2 "") (ssget "_p") )
    3 points
  2. Thank you both for the quick response. I ended up using Lee's second function and it works like a charm. Much appreciated.
    1 point
  3. Ben2 First of all, welcome in the Forum! Please don't post advertising. At least not in your first posts. First show us that you are a good contributor to this forum, help others, post interesting things. Become an old member, gain some ranks and in time maybe we will close an eye.
    1 point
×
×
  • Create New...