Originally Posted by
BlackBox
Very glad that I instead simply activate the Model tab when I need to work in model, as having to duplicate work like this would just set me off. Haha
I've apparently never known what maximize viewport is, although I have apparently found my way into this command by accidentally double clicking a viewport, but if I do that I just hit the undo button. I also just go to model space if I need to do work in it.
I also tried this out and didn't have it happen, but whenever I find variables that are changing and I don't want them to I use the variable reactor routine by Peter Jamtgaard. I believe that one started out as a savetime monitor, but I expanded it for pickfirst, dynmode, and filedia. No reason why you couldn't expand it to snapmode if you never want it on.
Edit:
My Variable Reactor Routine
Code:
;--------------------------------------;
;Routine to ensure designated ;
;variables remain unchanged: ;
; ;
;Automatic save: 30 minutes ;
;Pickfirst: 1 ;
;Filedia: 1 ;
;Dynmode: 3 ;
; ;
;Reactor by: Peter Jamtgaard ;
;--------------------------------------;
(vl-load-com)
(setq VTFRXN (vlr-editor-reactor nil '((:VLR-sysVarChanged . VTF))))
(defun VTF (CALL CALLBACK)
(if (and(= (strcase (car CALLBACK)) (setq str "SAVETIME"))(not (eq (getvar str) 30)))
(progn
(setvar "SAVETIME" 30)
)
)
(if (and(= (strcase (car CALLBACK)) (setq str "PICKFIRST"))(not (eq (getvar str) 1)))
(progn
(setvar "PICKFIRST" 1)
)
)
(if (and(= (strcase (car CALLBACK)) (setq str "FILEDIA"))(not (eq (getvar str) 1)))
(progn
(setvar "FILEDIA" 1)
)
)
(if (and(= (strcase (car CALLBACK)) (setq str "DYNMODE"))(not (eq (getvar str) 3)))
(progn
(setvar "DYNMODE" 3)
)
)
)
(setvar "savetime" 30)
(setvar "pickfirst" 1)
(setvar "filedia" 1)
(setvar "dynmode" 3)
;--------------------------------------;
;Creates the command "unloadreactor" ;
;which disables the reactor for ;
;current DWG ;
;--------------------------------------;
(defun c:unloadreactor()
(setq VTF nil)
)