I'm looking to toggle a selection of layers that has the h- prefix.
Found this on the net but it seems to only turn on the layer.
Is there anything I missed or any other way?
Thanks
(
defun c:test ()
(if LAYGROUPTOGGLE
(progn
(command "_.-layer" "off" "h-*" "")
(setq LAYGROUPTOGGLE 1)
)
(progn
(command "_.-layer" "on" "*h-*" "")
(setq LAYGROUPTOGGLE NIL)
)
))