_explode

There is a difference in handling the _explode command.

I can pick several objects at use in the command line: _explode -> pick objects -> enter, but only one object in lisp files: (command "_explode" object).

Is that on purpose?

Comments

  •  

    One option is to create your own selection set and pass it as input to the command:

    (defun c:test ()
    (setq ss1 (ssget (prompt "Select entities to explode: ")))
    (if (sslength ss1)
    (command "_EXPLODE" ss1)
    )
    (setq ss1 NIL)
    (princ)
    )
  • Ok, it is on purpose. Thanks!

This discussion has been closed.