Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete ALL unused layers in a drawing

28 REPLIES 28
Reply
Message 1 of 29
Anonymous
6265 Views, 28 Replies

Delete ALL unused layers in a drawing

How do I delete all the garbage layers that are not being used in drawing files. This includes the OOB layers AutoCAD has created  and also all the layers from template files or file info copied in from some other group.

 

 

2015 in use

 

Dave Z.

28 REPLIES 28
Message 2 of 29
neilyj666
in reply to: Anonymous

A lot of seemingly empty layers may be associated with Styles and therefore won't delete readily using PURGE.

 

LAYDEL may be a radical option

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2025 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 3 of 29
Anonymous
in reply to: neilyj666

I tried the "LAYDEL". It does not give me a window or an option to delete all layers that has no linework. Only the option on the command line to select a layer with a object.

 

Message 4 of 29
jefflambert9091
in reply to: Anonymous

If you don't want the unused styles, purge the styles and then the layers will purge.  

Jeff
Civil 3D 2024
Message 5 of 29
Anonymous
in reply to: Anonymous

ok got it to work but it does not delete the layers that are OOB by AutoCAD.

Message 6 of 29
jefflambert9091
in reply to: Anonymous

Getting a bit dangerous, but you can co into the object layers and set the ones you don't need to 0.

Jeff
Civil 3D 2024
Message 7 of 29
MMcCall402
in reply to: Anonymous

How about merging all the unwanted layers to layer 0.

Mark Mccall 
CAD Mangler



Hammer Land Engineering


Linkedin

Message 8 of 29

Taking a walk on the wild side!!

Jeff
Civil 3D 2024
Message 9 of 29
Pointdump
in reply to: Anonymous

Dave Z,

 

About how to get rid of them once you've opened a drawing, I dunno. But how about opening a fresh new template with only one layer--0? 

 

NoTemplate.png

 

 

 

Dave S

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 10 of 29
Anonymous
in reply to: Pointdump

Dave that idea has been bouncing around in my head. What happens when I create a surface or use any of the data modeling or piping networks. Does the file automatically create the layers it needs for those items.

 

 

Dave Z.

Message 11 of 29
Pointdump
in reply to: Anonymous

Dave Z,

 

"Does the file automatically create the layers it needs for those items."

 

You start off with one "Standard" Style in each category. Until you create more Layers, each Style only has Layer 0 to choose from.

 

Dave S

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 12 of 29
Anonymous
in reply to: Anonymous

So you end up creating the layers on the fly......hummmm
Message 13 of 29
jefflambert9091
in reply to: Anonymous

If you are in a working drawing layers are part of the workflow. You just have to learn how to deal with them. Layer filters help. We have split our templates up by discipline which reduces the amount of layers. We purge styles once we are done with a drawing. If we need the styles back, we can get them through the style manager.

Jeff
Civil 3D 2024
Message 14 of 29

That does not seem to be the case. Went: Manage Tab - Styles Tab - Purge - Purge all; Then purged layers, no luck.

Message 15 of 29
cwr-pae
in reply to: Anonymous

LAYDEL offers 2 option, select a layer by selecting an object is default. The other option is to select one or more layers from a list (type "n"). There is also this utility you can use to find and replace layers with in styles, the you can generally  delete the layers by purging.

Message 16 of 29
wfberry
in reply to: Anonymous

If you don't have the layers then you probably don't have the styles.  Just act like regular AutoCad and go for it.

 

Frankly I have been using Civil 3D for over 10 years and all these extra layers don't seem to be a problem.

 

Bill

Message 17 of 29
Anonymous
in reply to: wfberry

The extra layers are not realy a problem untill you start adding several xref files. We have some files with 4,000+layers listed.
Message 18 of 29
Joe-Bouza
in reply to: Anonymous

Select and merge to the layers you want.

Then save to template for qnew

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 19 of 29
wlewis
in reply to: Anonymous

Remember that any blocks that were copied in from other files (that were not created on layer 0) will cause that layer to remain until the block is purged as well.

Message 20 of 29
g_k50
in reply to: wlewis

Here's an Idea to consider, start a "No Template - Imperial" drawing.  Wblock the linework you want and insert into the "No Template-Imperial" drawing.  

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report