Our C3d template has many layers in it that we don't want but cannot purge. It is our guess that these layers are called for by one unused style or another but we have had no luck running them down. Do any of you have any advise - say, some way of listing out all the style settings to aid the hunt?
Mark,
Have you tried LAYDEL?
Dave
Check for unreferenced
xrefs
LAYDEL will delete the layers until the style that referenced the layer is invoked, at which point the drawing usually crashes. At least that is what I'm told.
Mark,
Probably not the quickest answer, but how about starting off with a really blank template and importing the desired styles and layers?

Dave
> Probably not the quickest answer, but how about starting off with a really blank template and importing the desired styles and layers?
That is likely what I'm going to end up doing.
If you figure out an easy way, let me know. We also have a template with something like 150 layers. When doing a simple plat I only need a few layers. I also can only get rid of about 1/2 of them. I'm probably just going to start a new template some day when I have time to kill.
> If you figure out an easy way, let me know. We also have a template with something like 150 layers. When doing a simple plat I only need a few layers. I also can only get rid of about 1/2 of them. I'm probably just going to start a new template some day when I have time to kill.
I have never tried it myself but isn't there a way to use a layer library and only bring in the layers you want in your drawing?
> I have never tried it myself but isn't there a way to use a layer library and only bring in the layers you want in your drawing?
In vanilla AutoCAD or in LDD then, yes, you can just purge layers that are unused, or easily build a layer set by copying from another drawing. The issue is that in C3d there are always a myriad of styles, a majority of which a surveyor would never concern themselves with, which have layers associated with them. These styles come in the out-of-the-box template, and until you find them and purge them or reassign their settings you will not be able to purge those layers.
The styles can be purged but there are hundreds of them. It is difficult to know which ones are needed and which are not. Even if it was possible to purge the layers, it's for not if you don't remove the references to them from the styles, too.
For getting products out to clients, that have Civil3D, our current resolution for this is to have everything on and thawed, then WBLOCK the model space portion of the DWG to a separate "send" folder. We also include a PDF of the final drawing, a point file exported from the drawing file, and Land XML of the surface(s) and point group(s). Kind of a pain but, it seems to be working so far.
Now that I reread your original question I see I'm 180° out. Talking about getting drawing out rather than cleaning up a template for in-house use.
I know you can track down where styles are referenced in the settings tab of the toolspace by right clicking on the yellow triangle that shows at the top left of styles that are being referenced and selecting "find references".
The other thing to try is under "edit drawing settings" "object layers" tab, anything you don't use you could set to layer 0.
Start with a drawing that has everything you want in it. Turn on and thaw all layers. WBLOCK everything out to a new drawing by selecting it with an all encompassing window.
Open that drawing, and the unused layers, styles etc. will not be in it. Erase everything with an all encompassing window again and then save as a drawing template for future use.
A couple of triangles, a scale rule, a drafting table.... oh back to the simple days before C3d. I hate all the layers also. I end up applying a filter to weed them out that way.
I have learned that there is a command in Sincpac, CivilStyleProperties, that lists out the layers by styles and facilitates re-setting the layers in the styles. Just what I wanted.