Efeezy Posted September 23, 2019 Posted September 23, 2019 CadTuror Gurus: Is there a quick way to turn on/off the: Layer manager, Properties Manger, and Xref dialog box? I do calcs on my other screen and need to toggle off the the: Layer manager, Properties Manger, and Xref dialog box while doing calcs. If there is a way to do this, can we set the command or hot key to ZZ. Thank you for your time, Efeezy Quote
rkmcswain Posted September 23, 2019 Posted September 23, 2019 How about this? (defun c:zz () (vl-cmdf "externalreferencesclose") (vl-cmdf "propertiesclose") (vl-cmdf "layerclose") ) Quote
tombu Posted September 23, 2019 Posted September 23, 2019 (edited) Clean Screen button next to Hamburger button (if it's on) or Ctrl+0 to show only the drawing, no Ribbon, Toolbars, or Palettes. It has the advantage of being able to toggle everything back on as well. Edited September 23, 2019 by tombu Quote
Efeezy Posted September 23, 2019 Author Posted September 23, 2019 ; TURN OFF: LAYER MANAGER XREF DIALOG BOX AND PROPERTIES BOX ; from rkmcswain 9/23/2019 Cadtutor.net (defun c:zz () (vl-cmdf "externalreferencesclose") (vl-cmdf "propertiesclose") (vl-cmdf "layerclose") ) -------------------------- ; TURN ON: LAYER MANAGER XREF DIALOG BOX AND PROPERTIES BOX (defun c:ZZZ () (vl-cmdf "externalreferences") (vl-cmdf "properties") (vl-cmdf "layer") ) -------------------------------------------------------------------- Quote Quote Quote
Efeezy Posted September 23, 2019 Author Posted September 23, 2019 Thank you, I I love it. Now I am trying to turn it all back on. I cant get the property manager to turn back on. Also, Didn't know there was a ctrl +0 hot key to turn everything on and off. Quote
tombu Posted September 23, 2019 Posted September 23, 2019 1 hour ago, Efeezy said: Thank you, I I love it. Now I am trying to turn it all back on. I cant get the property manager to turn back on. Also, Didn't know there was a ctrl +0 hot key to turn everything on and off. Code looks good, try using with the underscore "_properties" Properties Palette can be toggled On/Off with Ctrl+1 Quote
Efeezy Posted September 23, 2019 Author Posted September 23, 2019 The layer manager is the one that I can't turn back on. I am not very good at code I pretty much duplicated rkmcswain code. Quote
tombu Posted September 24, 2019 Posted September 24, 2019 (edited) 12 hours ago, Efeezy said: The layer manager is the one that I can't turn back on. I am not very good at code I pretty much duplicated rkmcswain code. Try the LAYERPALETTE command instead: http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-DD91EB0C-5D3E-421E-BAB0-F4C2C292FD66 To create a toggle to open or close all those palettes test the LAYERMANAGERSTATE (System Variable) indicates whether the Layer Properties Manager is open or closed. ; https://www.cadtutor.net/forum/topic/68762-turn-off-layer-manager-xref-dialog-box-and-properties-box/ ; Toggle off/on: layer manager, xref, and properties Palettes (defun c:PalettesOnOff () (cond ((= 1 (getvar "layermanagerstate") (vl-cmdf "externalreferencesclose") (vl-cmdf "propertiesclose") (vl-cmdf "layerclose") ) (T (vl-cmdf "externalreferences") (vl-cmdf "properties") (vl-cmdf "layerpalette") ) ) Edited September 24, 2019 by tombu Quote
Efeezy Posted September 25, 2019 Author Posted September 25, 2019 ; TURN OFF: LAYER MANAGER XREF DIALOG BOX AND PROPERTIES BOX ; from rkmcswain 9/23/2019 Cadtutor.net (defun c:ZZ () (vl-cmdf "externalreferencesclose") (vl-cmdf "propertiesclose") (vl-cmdf "layerclose") ) ----------------------------------------------------------------------------------------------------------------- ; TURN ON: LAYER MANAGER XREF DIALOG BOX AND PROPERTIES BOX (defun c:ZZZ () (vl-cmdf "externalreferences") (vl-cmdf "properties") (vl-cmdf "layerpalette") ) ----------------------------------------------------------------------------------------------------------------- thank you I updated the Layerplette on my code. works great now thank you Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.