INITCOMMANDVERSION RETURNING ERROR IN LISP

I've got a LISP that explodes all 3d polylines in ACAD:

(defun c:3DEXPLODE (/ pl)
(setq pl (ssget "X" '((0 . "*POLYLINE"))))
(initcommandversion 2)
(command "_explode" pl "")
)

originally sourced from leemac

but when I run it in Bricscad it tells me it doesn't recognise "initcommandversion".

is there a way to easily hack this LISP up for BricsCAD? Or a different LISP I can use to do the same thing, select all 3dpolylines explode them into lines?

TY

Comments

  • ok so I've posted in the wrong sub. reposted in the programming sub. mods please delete this tread.

    TY