Jump to content

TURN OFF: LAYER MANAGER XREF DIALOG BOX AND PROPERTIES BOX


Recommended Posts

Posted

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 

Posted

How about this?

 

 

(defun c:zz ()
  (vl-cmdf "externalreferencesclose")
  (vl-cmdf "propertiesclose")
  (vl-cmdf "layerclose")
)

 

Posted (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 by tombu
Posted
; 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

 

 

Posted

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.

Posted
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

Posted

 

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.

Posted (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 by tombu
Posted
; 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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...