Sunday, November 16, 2008

Purge layers that don’t want to be purged in AutoCAD

Want to clean up you drawings from extra or garbage layers?

The obvious way to purge layers is to use the Purge command but sometimes it’s not enough. Purge might need to be run several times. Make sure to select purge nested items.

I got a request per email and the not so obvious tip that worked was the following:

Try to open the drawing with RECOVER or run AUDIT on it and then run PURGE and select all and also purge nested items and it will probably go away. Sometimes this needs to be repeated several times.

Notice that you cannot purge

  • the active or current layer
  • layers with objects
  • layer 0
  • layer Defpoints (It can be purged if you remove all dimensions)
  • layers in XREFs (xref-dependent layers)

In the Purge dialog box you can find items you cannot purge.

Layers can exist nested in blocks. They can be used by empty text strings (QTEXTMODE can be used to show these) or lines without length or even viewports that have the layer frozen.

LAYMRG (Layer Merge) or LAYDEL (Layer Delete) might be able to help you either merge the layer to for example layer 0 or if you don’t care what’s on the layer delete it.
LAYWALK is also useful to see what is in each layer and can purge unreferenced layers.
LAYTRANS can also purge layers. In the Layer Translator, right-click in the Translate From list. Click Purge Layers.

To use the filters in the Properties palette (QSelect) can also work but you might need to explode everything several things first.

Another way to generally purge a drawing is to Wblock the entire drawing to a new drawing or use –WBLOCK and * for whole drawing or you can Wblock selected objects.

You can also try to isolate the problem by deleting 50% of the drawing, try to purge and then keep repeating it until nothing is left. If the layer is still there it might be used by some kind of object that is not purged using the plain purge command. It might be something in a vertical like AutoCAD Architecture and then you have to maybe purge using the style manager.

DXF can also help. Save as DXF or use DXFOUT command and open in a text editor and search for the layer to see where it is used.

SmartPurger can help you automate your purging and scripting work.

What is your trick to purge layers?

1 comment:

  1. AnonymousJune 15, 2012

    to purge I use a to part phase in which i made lsp routines for in these cases.


Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Subscribe to this blog
JTB World's website | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.