Nice lisp
I've been trying to make a couple of edits, so that instead of erasing the selection set it instead moves them to a defined layer.
The first bit was easy, the second bit is easy as long as the layer exists in the drawing. So I have been trying to add code to check existence and make the layer if necessary but have ended up with a syntax error.
the first bit is this:
; (entdel e)
(command "_.CHPROP" e
"" "_LA" "Clashing-Null" "")
and this is the code i have been trying to integrate:
(command "layer" "F" "CLASHING_LEVELS" ^C
)
(command ".-layer" "c" "6" "CLASHING_LEVELS" "")
could some one please show me the correct place to put this code?
Also whilst I'm at it, it would be great is the selection set would filter out any blocks which are already on any layers prefixed with 'clashing-' beforehand.
Thanks
P