How to delete empty layers from drawing

How to delete empty layers from drawing

Anonymous
Not applicable
4,330 Views
4 Replies
Message 1 of 5

How to delete empty layers from drawing

Anonymous
Not applicable

I have many drawings with 10's of layers in them (not xrefs). I want to be able to remove (delete) layers that contain no data. Is there a way to do this in AC or do I need to write a LISP routine?

4,331 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

PURGE

Kent Cooper, AIA
Message 3 of 5

vinodkl
Mentor
Mentor

Hello @Anonymous 

There is no requirement of any LISP to do that. As Kent said you can use the command "PURGE" to remove the layers, block, linetypes.. which are not used in the drawing 🙂

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant

The purge is the obvious choice but not the only one.


When working with layers in the Layer Manager you spot that you have some empty layers (you tell by the lighter icon), layers which you don't need, you can simply select them and hit the Delete button, or press an icon. Or if you want to delete all empty layers, simply select all layers by ctrl+a (empty and non-empty) and hit the delete. Layers with objects won't be deleted.

It might be much faster than run another command.

 

Z9E3zK5E_0-1617866373446.png

 

Message 5 of 5

pendean
Community Legend
Community Legend
If PURGE and/or LAYDEL command cannot remove them, then your layers are not empty: but you can use LAYMRG command to merge them with layer 0 then discover wat was hiding in there if anything obvious 😉