ENTDEL expects an ENAME as an argument, not a PICKSET. If it's your
intention to erase everything you selected, you can either feed the
selection set to the erase command or loop through the set, deleting
objects one at a time:
(setq i -1)
(repeat (sslength InnSet)
(entdel (ssname InnSet (setq i (1+ i))))
)
--
"That's no ordinary rabbit."
http://www.acadx.com
Visit my site for a chance to win
a free, autographed copy of
Jerry Winters' "AutoCAD Visual Basics"
"Kiwi Russ" wrote in message
news:A5E2D01616611B331CAA4225FEDCC5A9@in.WebX.maYIadrTaRb...
> I want to delete an entity made through ssget. Unfortunately it
won't work
> if I use (entdel InnSet)
> How can I delete this object? Thanks for any help (acad
2000)
>
> (princ"\nSelect Openings (or for none)... " )
> (if (setq InnSet (ssget '((0 .
> CIRCLE,ELLIPSE,SPLINE,POLYLINE,LWPOLYLINE")))
>
> (entdel InnSet) ;;;this line is near the end of my
code
>
>