Message 1 of 3
Deleting 2 (or more) Selections Sets

Not applicable
01-10-2018
03:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone!
I'm trying to create a lisp that will delete Two Different Selection Sets that are set by 4 points (creating 2 rectangles)
(defun c:abrichmond ()
(setq
pt1 '(195.04094339 725.61441843 0.0)
pt2 '(1150.04094339 1065.61441843 0.0)
pt3 '(803.48705661 727.73346049 0.0)
pt4 '(497.48705661 1065.61441843 0.0)
)
(setq ss1 (ssget "W" pt1 pt2))
(setq ss2 (ssget "W" pt3 pt4))
(COMMAND "ERASE" ss1 "")
(COMMAND "ERASE" ss2 "")
)
The command only seems to erase the initial selection set (ss1) but does not erase the second selection set (ss2).
Any Suggestions would be much appreciated!
Thanks in Advanced,
Ben