Message 1 of 15
Not applicable
05-21-2019
10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I through together a lisp using a few others that is intended to use CleanScreen and get rid of the command line and a few others to go to a full screen of sorts. I also wanted it to zoom all layouts to all (except model to extents). The zoom doesn't seem to work quite the way I want and forces me to use the zoom all on all layouts again afterward. It's as if it is zooming before the interface is cleared all the way.
Here is the LISP so far:
(defun c:fw nil (c:FullScreenMode))
(defun c:FullScreenMode ()
(command "_CleanScreenOn")
(command "commandlinehide")
(setvar 'layouttab 0)
(setvar 'menubar 0)
(foreach lay (layoutlist)
(setvar 'ctab lay)
(command "_.pspace" "_.zoom" "_all")
); end foreach
(setvar 'ctab "Model")
(command "_.zoom" "_extents")
(setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))
(princ)
)
(defun c:fwq nil (c:FullScreenModeOff))
(defun c:FullScreenModeOff ()
(command "_CleanScreenOff")
(command "commandline")
(setvar 'layouttab 1)
(setvar 'menubar 1)
(foreach lay (layoutlist)
(setvar 'ctab lay)
(command "_.pspace" "_.zoom" "_all")
); end foreach
(setvar 'ctab "Model")
(command "_.zoom" "_extents")
(setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))
(princ)
)
Any ideas would be much appreciated!
Thanks,
Michael
Solved! Go to Solution.