notview Posted May 10, 2014 Posted May 10, 2014 Is there a way to turn off the layers previously on? E.g., I have layer1, layer2, layer3, and so on. I turned off layer2, after doing something.. I decided to turn it on again. Any guys can help? Quote
BIGAL Posted May 11, 2014 Posted May 11, 2014 There is multiple ways to achieve what you want a few, obvious layer manager LA, use the option in the layers toolbar, set up filters in the layer manager, use a lisp, use a macro LA on layer1 I am sure others will make more suggestions Quote
notview Posted May 11, 2014 Author Posted May 11, 2014 Thank you Bigal, I want lisp, this will be helpful in my work if anyone can make. Quote
Organic Posted May 11, 2014 Posted May 11, 2014 I would instead isolate layers 1 & 3 (or whatever layers you want to work on), do whatever you need to do, then unisolate and layer 2 will return. Layiso & layuniso are the commands I think [i usually just use the buttons on the 'Layers 2' toolbar] Quote
BIGAL Posted May 11, 2014 Posted May 11, 2014 (edited) If not Organic answer, so you want pick 1 or a few layers turn off then later on turn these back on is that correct ? This can be done by making a global list turn off, the 2nd lisp turn them back on. If this is what you want welcome. ; laysave pick objects to layer turn off : by Alan H May 2014 (defun C:layoff ( / lay layname) (while (setq lay (entget (car (entsel)))) (setq layname (assoc 8 lay)) (command "-la" "off" layname "") (setq AHlaylist (cons laylist layname)) ) ) ; layback turn layers back on (defun c:layon ( ) (foreach layon AHlaylist (command "-la" "On" layon "") ) ) Edited May 11, 2014 by BIGAL Quote
notview Posted May 11, 2014 Author Posted May 11, 2014 Thanx Organic, Layiso and Layuniso is applicable if doing up to 3 layers, but more than that I think is not good. Something like that Bigal, but allow me to make some additional explanation, I only want to be turned on is the last layer I turned off, then Esc to end, otherwise, hitting the Enter/Space for second time will be make turned on all the layers off. Is this possible? Kind help will be much appreciated. Quote
VVA Posted May 11, 2014 Posted May 11, 2014 I am sorry if I do not understand the question, but why not use the _layerp? Quote
notview Posted May 12, 2014 Author Posted May 12, 2014 VVA, this is what I need, haha! Thank you VVA!! Layerp, it is already a command in my Cad.. (otherwise question above) is using layer on, then that's the time will be on all the layer off. but, anybody can make it in one command, that's very good!! Quote
BlackBox Posted May 12, 2014 Posted May 12, 2014 Just a couple of observations.... ... Layiso and Layuniso is applicable if doing up to 3 layers, but more than that I think is not good. I'm not sure where you learned this, but this limitation is not described in the documentation, nor has the LAY*ISO Commands ever failed when selecting 4 or more layers in my experience. ... Layerp, it is already a command in my Cad.. (otherwise question above) is using layer on, then that's the time will be on all the layer off. You may find the LAYWALK Command to be of use as well. Cheers 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.