I just wrote a piece of lisp to add to another program that creates a selection set of all the objects on a certain layer and then I use the Explode command to explode them all at once. In LISP the routine only explodes one of the object not all of them. If I type Explode at the command line in AutoCAD 2004 and at the "Select objects" prompt to give it the :sset selection set I created in the LISP routine using !:sset it explodes all of the objects of the selection set.
What is the deal?
The program is below.
(defun C:XE ( / :SSET)
(setq :SSET (ssget "X" '((0 . "INSERT")(8 . "EXPLODE"))))
(command "explode" :SSET "")
);end defun
Kevin