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
|
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")
R.K. McSwain | CAD Panacea |
It is also set by workspaces in the CUI.
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
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))
Last edited by RenderMan; 2011-03-08 at 04:41 PM. Reason: Typo
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
R.K. McSwain | CAD Panacea |
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))
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000