How do I purge layers that don’t want to be purged

Want to clean up your 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. Notice that in the purge dialog box you can find items 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

Here there are some tips to purge unwanted layers:

– 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 the 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.

– 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.


Discover more from Gstarsoft's Blog

Subscribe to get the latest posts sent to your email.

  • GstarCAD Blog

    www.gstarcad.net

    Related Posts

    How to Fix Missing Xrefs in a DWG File

    You open a DWG and the drawing looks strangely empty. The floor plan is there, but the structural grid is gone. Or the title block remains while an entire referenced…

    Why Is My DWG File So Large and How to Reduce It Safely

    A DWG file can grow far beyond what its visible geometry seems to justify. Common causes include unused definitions, duplicate objects, imported content, empty text, zero-length geometry, registered application data,…

    Leave a Reply

    Don't Miss out

    How to Fix Missing Xrefs in a DWG File

    • November 19, 2026
    How to Fix Missing Xrefs in a DWG File

    Why Is My DWG File So Large and How to Reduce It Safely

    • November 11, 2026
    Why Is My DWG File So Large and How to Reduce It Safely

    What Is a DXF File? A Practical Guide to CAD Exchange

    • November 4, 2026
    What Is a DXF File? A Practical Guide to CAD Exchange

    What Is a DWG File? An Easy Guide for CAD Beginners

    • October 30, 2026
    What Is a DWG File? An Easy Guide for CAD Beginners

    What’s New in GstarRender: AI Architectural Visualization from Concept to Video

    • October 29, 2026
    What’s New in GstarRender: AI Architectural Visualization from Concept to Video

    GstarCAD Deep Dive: What’s New in Batch Plotting for 2027?

    • October 20, 2026
    GstarCAD Deep Dive: What’s New in Batch Plotting for 2027?

    Discover more from Gstarsoft's Blog

    Subscribe now to keep reading and get access to the full archive.

    Continue reading