I was fixing some basic LISP routines my office has and ran across something I can't figure out. I have become the defacto CAD manager at my architecture firm, and everything I know about AutoLISP is self taught, so please help.
I am working in a LISP routine that restores a named Layer State that exists within the drawing.
Code:
(defun c:B0()
(SETVAR "CMDECHO" 0)
(layerstate-restore "B0" (acet-currentviewport-ename))
(command "tpnavigate" "base")
(command "regen")
(SETVAR "CMDECHO" 1)
(princ)
)
Everything makes sense to me except for: acet-currentviewport-ename. Google hasn't told me anything beyond that its included within the acetutil modules ??
I am wondering what the function of using this is? It seems to still work if I remove it, but I don't want to mess anything up as layer state restore commands are super important in my firm. I am trying to clean up the office routines as part of a long term project and want to make the lisp routines as straight forward as possible.