[Provided you set the mysterious QAFLAGS System Variable first, because Explode in a (command) function can't do a whole selection set's worth of objects at once, otherwise. Search the Discussion Group for examples, and be sure to set it back!]
If you still think it's too easy, maybe you should also incorporate *more* stuff, such as this:
(setq ss (ssget '((0 . "INSERT,*POLYLINE,MLINE,LEADER,MTEXT,DIMENSION,3DSOLID,BODY"))))
and whatever other object types are explodable, so it will see only those, and ignore unexplodable things like Lines and Text and so on.
--
Kent Cooper
Edited by: Kent1Cooper on Oct 29, 2009 11:07 PM
Kent Cooper, AIA