I have the following code, and I am trying to call the SBL command and have it select the previous selection with the ssget. Not understanding why it would error out with a simple command line.
The below is a example routine. I have others I would like to code similar to this if I can figure it out.
(defun c:SBL ()
(command "setbylayer" "al" "" "n" "y")
(princ)
)
(defun C:FixTheseBlocks ()
(ssget "x" '((0 . "INSERT")(2 . "12CES,15CES,18CES,21CES,24CES,27CES,30CES,33CES,36CES,48CES")))
(C:SBL "previous" "")
(princ)
)
Thanks for all the help guys!