I have created a reactor that turns off the "navvcubedisplay" when in modelspace or a viewport. The viewport part only works when moving to a viewport from paperspace, not when moving from one viewport to another. Is there some kind of reactor that would fire when moving from one viewport to another, similar to the :vlr-layoutSwitched event for the vlr-miscellaneous-reactor when moving between layouts?
Here is my code so far:
Code:
(vl-load-com)
(vlr-command-reactor "Turn Off Navvcubedisplay" '((:vlr-commandEnded . endCommand)))
(defun endCommand (calling-reactor endcommandInfo / thecommandend)
(setq thecommandend (nth 0 endcommandInfo))
(cond
((= thecommandend "MSPACE") (setvar "navvcubedisplay" 0))
((= thecommandend "TILEMODE") (if (= 1 (getvar "tilemode"))(setvar "navvcubedisplay" 0)))
);end cond
);end defun