Author Topic: Destroy ViewCube / NAVVCUBE  (Read 1939 times)

0 Members and 1 Guest are viewing this topic.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Destroy ViewCube / NAVVCUBE
« on: September 18, 2014, 02:05:02 PM »
Is there some way to get rid of the NAVVCUBE? I know you can set NAVVCUBEDISPLAY to 0 but it seems to be a per-drawing setting even though they say its a 'system variable' .

thanks
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Destroy ViewCube / NAVVCUBE
« Reply #1 on: September 18, 2014, 02:15:35 PM »
could you not shut it off in your startup doc?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Destroy ViewCube / NAVVCUBE
« Reply #2 on: September 18, 2014, 02:51:25 PM »
Mark, a quick check reveals SOME of the NAVVCUBE is controlled by registry.
It's ON/OFF status, is a drawing variable.  One should be able to turn it off in the default DWG template.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

RC

  • Guest
Re: Destroy ViewCube / NAVVCUBE
« Reply #3 on: September 18, 2014, 02:54:25 PM »
Some 'system' variables are saved in the registry, some are saved in the drawing and some are not saved at all.

NAVVCUBEDISPLAY is not only saved in the drawing but it is also viewport specific and can be on or off in different viewports.

an inelegant toggle (can be assigned to a function button):
Code: [Select]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun c:nvc ()
(runsilent)
(command ".undo" "begin")
  (if (> (getvar "navvcubedisplay") 0)
(command "navvcubedisplay" "0" "navbardisplay" "0")
(command "navvcubedisplay" "3" "navbardisplay" "1")
   )
(command ".undo" "end")
(unrunsilent)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Destroy ViewCube / NAVVCUBE
« Reply #4 on: September 18, 2014, 02:55:01 PM »
One should be able to turn it off in the default DWG template.
Thank you!! I did not think about turning it off in my template.
TheSwamp.org  (serving the CAD community since 2003)

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: Destroy ViewCube / NAVVCUBE
« Reply #5 on: October 03, 2014, 11:02:04 AM »
Clip from my acaddoc.lsp file pieced together from other posts:
Code: [Select]
(if (not *LayoutUCSIcon*)
  (setq *LayoutUCSIcon*
         (VLR-Miscellaneous-Reactor nil '((:VLR-layoutSwitched . LayoutUCSIcon)))
  )
)
(defun LayoutUCSIcon (a b)
  (setvar 'UCSICON 0)
  (if (and(/= (getvar 'navvcubedisplay) 1)(/=(getvar 'cvport)1))(setvar 'navvcubedisplay 1))
)

(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 1))
                ((= thecommandend "TILEMODE") (if (= 1 (getvar 'tilemode))(setvar 'navvcubedisplay 1)))
        );end cond
);end defun
Things I don't care to see. 

Of course making sure template settings and styles are exactly how you want them is the biggest timesaver in CAD.
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D