View Full Version : Temporarily Thaw/turn-on all layers.
Wish List System
2014-10-28, 03:34 AM
Summary: Just the opposite to Layer Isolate, to allow quick editing of non-visible entities.
Description: This command would enable you to temporarily thaw and turn on all layers, so you can quickly see and edit entities on layers that are normally frozen or turned off.
Once you've finished, just reinstate the previous layer settings with one click.
This command would be especially useful in paper-space viewports where viewport visibility states are being used.
Product and Feature: AutoCAD - Layer
Submitted By: Gavin Brownrigg on 10/28/2014
Tom Beauford
2014-10-28, 11:17 AM
I've written code to do this, but using it "in paper-space viewports where viewport visibility states are being used" is difficult. The layer settings are saved with each viewport so while you could create a layer state each time you use the command in a viewport and keep track of them a layer state a layer state does not distinguish between layer settings and overrides. If you use the code below use layer previous to go "reinstate the previous layer settings with one click". The code below does work well on the model tab. You could also use layer manager to temporarily thaw and turn on all layers, then use Layer Previous after you're done and before you leave the viewport.
Lisp provided, use with caution:
;| Layer All On Thaw Toggle
BY: Tom Beauford
BeaufordT@LeonCountyFL.gov
Leon County Public Works Engineering Section
Macro: ^C^C^P(or C:LayAll (load "LayAll.lsp"));LayAll
Command line: (load "LayAll.lsp") LayAll
==============================================================================|;(defun c:LayAll (/ CMD lsname)
(setq CMD (getvar "Cmdecho"))
(setvar "Cmdecho" 0)
(setq lsname "Off_or_Frozen")
(if (layerstate-has lsname)
(progn
(layerstate-restore lsname nil nil)
(princ "\nOff or Frozen layers restored")
(layerstate-delete lsname)
)
(progn
(layerstate-save lsname nil nil)
(command "layon" "laythw")
; (command "vplayer" "t" "*" "Current" "")
)
)
(setvar "Cmdecho" CMD)
(princ)
)
Tiggz1
2014-10-28, 10:48 PM
Thanks Tom, much appreciated.
Regards,
Gavin.
Wish List System
2014-10-29, 10:22 AM
Temporarily Thaw/turn-on all layers.
Summary: Just the opposite to Layer Isolate, to allow quick editing of non-visible entities.
Description: This command would enable you to temporarily thaw and turn on all layers, so you can quickly see and edit entities on layers that are normally frozen or turned off.
Once you've finished, just reinstate the previous layer settings with one click.
This command would be especially useful in paper-space viewports where viewport visibility states are being used.
Product and Feature: AutoCAD - Layer
Submitted By: Gavin Brownrigg on 10/28/2014
Wish List System
2014-10-29, 10:22 AM
Temporarily Thaw/turn-on all layers.
Summary: Just the opposite to Layer Isolate, to allow quick editing of non-visible entities.
Description: This command would enable you to temporarily thaw and turn on all layers, so you can quickly see and edit entities on layers that are normally frozen or turned off.
Once you've finished, just reinstate the previous layer settings with one click.
This command would be especially useful in paper-space viewports where viewport visibility states are being used.
Product and Feature: AutoCAD - Layer
Submitted By: Gavin Brownrigg on 10/28/2014
cadtag
2014-10-29, 12:15 PM
-LAYER command, ON * THAW *
edit as required
LAYERP
Tiggz1
2014-10-29, 08:28 PM
Thanks cadtag, I always thought LAYERP just reverted to the previous current layer and never explored it further. Guess I should have.
Now I just need the same ability within viewports to toggle viewport freeze/thaw.
Thanks again for your input.
Regards,
Gavin.
BlackBox
2014-10-30, 05:22 AM
Thanks cadtag, I always thought LAYERP just reverted to the previous current layer and never explored it further. Guess I should have.
Now I just need the same ability within viewports to toggle viewport freeze/thaw.
Thanks again for your input.
Regards,
Gavin.
As noted in the above code, use the VPLAYER Command. :wink:
Wish List System
2022-11-22, 07:21 PM
Temporarily Thaw/turn-on all layers.
Summary: Just the opposite to Layer Isolate, to allow quick editing of non-visible entities.
Description: This command would enable you to temporarily thaw and turn ON all layers, so you can quickly see and edit entities on layers that are normally frozen or turned off.
Once you've finished, just reinstate the previous layer settings with one click.
This command would be especially useful in paper-space viewports where viewport visibility states are being used.
Product and Feature: AutoCAD - Layer
Submitted By: Tiggz1 on 10/28/2014
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.