Hi from a Lisp newbie. I have written the following routine to change to target layer "PL1" using the chprop command.
I would like to be able to choose the target layer (from a list of existing layers) from within the routine. If the drawing contains layers PL1, PL2, PL3 etc. how can I choose the target layer, instead of defining a single layer. I guess it will involve some "if" or "while" or "cond" statements?
; Changes selected objects to Layer PL1
(defun c:setpl1 ()
(ssget ) "" "LA" "PL1" "")