Message 1 of 17
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone, I am fairly new to LISP. I tried creating a selection set. Below is my LISP routine
(defun c:selal() (setq vscbp (getpoint "\n Specify base point: ")) (setq ss1 (ssget)) (setq ss2 (ssget "P" '((-4 . "<OR")(0 . "TEXT")(0 . "MTEXT")(0 . "MULTILEADER")(0 . "LEADER")(0 . "DIMENSION")(-4 . "OR>")))) (command "._SELECT" ss1 "") (setq ss3 (ssget "P" '((-4 . "<OR")(0 . "HATCH")(0 . "LINE") (0 . "ARC") (0 . "CIRCLE") (0 . "SPLINE") (0 . "POLYLINE") (0 . "2D POLYLINE") (0 . "3D POLYLINE")(-4 . "OR>")))) )
I am trying to make a selection in the drawing and then filter annotation objects to make ss2. I then need ss3 which is everything from ss1 less the annotation objects. Questions is: After I create ss2, is there a cleaner way to make ss3, which is everything in ss1 less ss2? I am manually typing out everything I can imagine for ss3 and I am sure I missed quite a bit. I want to make sure I get everything from ss1 less the annotation objects. Thanks.
Solved! Go to Solution.