Display full version of the post: Deleting layers

LeeP
07.02.2013, 13:21
I've a feeling this is going to be another dumb question, but here goes anyway...
 
In trying to tidy up a drawing, I want to delete several layers that appear to have nothing on them - certainly not that I can find in the drawing. I get a msg box telling me that I can't delete  layer 0 etc or any layer containing objects. Fair enough, I get that.
 
But looking at the drawing, and short of turning off every layer (there are nearly 100) except one at a time, how can I find which objects are on any particular layer?
 
I have already purged unused layers.
 
Thanks,
 
Lee
 

CarlB
07.02.2013, 19:35

The command "LAYWALK" may help you view items by layer. it's kind of like your thought to turn off all layers except one, but automated.  

LeeP
08.02.2013, 07:35
That's a big help for identifying what's on a particular layer - thanks for that!
 
Now I've played around with that and looked at related commands , but I need to go a little further. Of my 96 layers, only one was unreferenced and able to be deleted. But there are several other layers that appear to have no objects on them and yet I cannot purge them - what am I missing?
 
There are also quite a few layers that have only one or two bits of lines or partial objectss on them (for some reason). Is there a way to select these few objects with the LAYWALK dialoge open and then move them to a different layer? Then I would expect to be able to delete or purge the layer they were on.
 
Thanks again.

heinsite
08.02.2013, 08:48
[QUOTE=LeeP]But there are several other layers that appear to have no objects on them and yet I cannot purge them - what am I missing?
 
There are also quite a few layers that have only one or two bits of lines or partial objectss on them (for some reason). Is there a way to select these few objects with the LAYWALK dialoge open and then move them to a different layer? Then I would expect to be able to delete or purge the layer they were on.[/QUOTE]
In the first case objects on those layers may be embedded in blocks that have been inserted on other layers, which makes finding things difficult.  You might open a few blocks in the block editor and look at what layers have been used.   If they use some of the layers you want to delete, change all of the objects in the block to Layer 0 and resave the block(s).  This might help with a few items.Unfortunately you cannot select objects from within LAYWALK.  So you'll need to make note of the layers and get back to the orphaned objects some other way.Dave.

admann27
08.02.2013, 18:42
Try making a copy of your drawing, then open/turn on all the layers. Explode all the blocks within the drawing and use LAYWALK to see where the unneeded layers are.In the main drawing, find the blocks that contain those layers, edit them and move the lines/circles/etc to other layers you might want to have in the drawing.

LeeP
11.02.2013, 08:57
Dave/admann,
 
Thanks for replies and your suggestions.
 
Looks like this is going to take some time, but at least now, I have the toold to do it.
 
Thanks again.

heinsite
12.02.2013, 09:58
Admann's advice is excellent... and if this were my problem I would probably attack it along those lines myself.Dave.