Hello All
what is the variable for Hide Layout/Model tabs.
(The option is available on context menu & in Options->Display->Layout Elements)
Thanks
Yogesh
Printable View
Hello All
what is the variable for Hide Layout/Model tabs.
(The option is available on context menu & in Options->Display->Layout Elements)
Thanks
Yogesh
It is not a system variable, but stored in the registry here:
HKCU\Software\Autodesk\AutoCAD\Rxx.x\ACAD-xxxx:xxx\Profiles\[profile_name]\Drawing Window\ShowTabs
You can control it at the command line like this:
Code:
(setenv "ShowTabs" "1")
(setenv "ShowTabs" "0")
It is also set by workspaces in the CUI.
Could someone be more specific about how to find it in the CUI. Somehow my tabs disappeared and I can't figure out how to get them back. The box is checked in options to show model and layout tabs. It's driving me nuts. Thanks.
p.s. I also tried (setvar "Showtabs" "1"), didn't work.
setenv and setvar are _not_ the same thing
Also, when you are using setenv to manipulate environment settings, case sensitivity matters -- SHOWTABS is not the same as ShowTabs or showtabs or Showtabs.
Here's another way:
[edit]Code:(defun c:TABS ()
;; © RenderMan 2011
(vl-load-com)
(if (= :vlax-true
(vla-get-displaylayouttabs
(cond (*prefsDisplay*)
((setq *prefsDisplay*
(vla-get-display
(vla-get-preferences (vlax-get-acad-object))))))))
(progn
(vla-put-displaylayouttabs *prefsDisplay* :vlax-false)
(prompt "\n** Layout tabs: Off ** "))
(progn
(vla-put-displaylayouttabs *prefsDisplay* :vlax-true)
(prompt "\n** Layout tabs: On ** ")))
(princ))
Simplified version:
[/edit]Code:(defun c:TABS ()
;; © RenderMan 2011
(if (= "1" (getenv "ShowTabs"))
(progn
(setenv "ShowTabs" "0")
(prompt "\n** Layout tabs: Off ** "))
(progn
(setenv "ShowTabs" "1")
(prompt "\n** Layout tabs: On ** ")))
(princ))
:lol:
Code:(defun c:FOO (/ onOff)
(initget 1 "ON OFF")
(if (= "ON" (setq onOff (getkword "\n\"Wax On\", or \"Wax Off\"? [On/oFf]: ")))
(command "._browser" "http://mhs9192.com/clipart/80s%20chi...0WAX%20OFF.jpg")
(command "._browser" "http://www.yourkloset.com/wp-content...gin-Waxing.jpg"))
(princ))