I am trying to set a viewport on A-Anno-Spce-Nplt . Can someone help with this. This is what I got so far. I don't think that it will work. I would like it to add the layer A-Anno-Spce-Nplt with color 8. It would need to have the print turned off.
Thank you for your help.
This is my first lisp that I tried to write.
; File Name: Revision Viewport Non Plot.LSP
; Description: Puts Viewports on its own Not Plot Layer so it will not plot.
;
;*******************************************************************************
(defun C:vport-nplt (/ SSetLayer)
(setq SSetLayer (ssget "_X" '((8 . "A-Anno-Spce-Nplt"))))
(if SSetLayer
(command "._A-Anno-Spce-Nplt" SSetLayer "")
)
(princ)
)