CarlB
Please let me to put a finger on that code:
(defun c:3d2d()
(command "_explode" pause "")
(command "_pedit" "_m" "_p" "")
(if (= 0 (getvar "peditaccept")) (command "_y"))
(command "_j" "" "")
(princ)
)
Now it works whatever is the value of PEDITACCEPT. I assume that people are using AutoCAD 2k4 or newer because PEDITACCEPT vas introduced in that relase only.
It could be tested the ACADVER to see if the version is prior to 2k4 but I don't think that it worth the effort.