Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

Thank you Bigal, I want lisp, this will be helpful in my work if anyone can make.

Posted

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]

Posted (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 by BIGAL
Posted

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.

Posted

I am sorry if I do not understand the question, but why not use the _layerp?

Posted

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!!

Posted

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. :thumbsup:

 

Cheers

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...