Purging of document

Purging of document

Purging of Document

MouseOK   nanoCAD button – Utilities > Purge

MouseOK   Menu: File – Drawing Utilities >  Purge …

MouseOK    Document tab context menu: Utilities >  Purge…

KeyboardOK Command line: PURGE

This command is used to purge unused named elements from a document: block descriptions, dimension styles, layers, text styles and line types.

Using this procedure, you can reduce file size after finishing your project.


attention! Deleted elements cannot be recovered.


The Purge dialog box appears after the command is launched. There is a list of elements which available for deletion, and a list of elements which are not available for deletion. The list is organized as a tree: to open a list of elements of one type, click twice on the elements name or select the  sign to the left of the name. If there is no  sign, it means that there are no elements of this type to delete (or which cannot be deleted).


View elements you can purge

Switches on the mode for viewing elements which can be deleted from a document.

View elements you cannot purge

Switches on the mode for viewing elements which cannot be deleted from a document. Elements, used in a document or standard items which cannot be deleted.

Confirm each item to be purged

Switches on the mode for displaying a query to confirm for each purged element. For further purge in an automatic mode, at any moment you can click Yes to all in a query box.

Purge nested items

Switches on the mode for purging all unused named objects contained inside other unused named objects. The purge is confirmed in a separate dialogue box.

Purge zero-length geometry and empty text objects

Switches on the mode for purging graphical waste. The checkbox is not available in case such geometry is absent in a document.

Automatically purge orphaned data

Purges outdated vector data styles of DGN format.


Purges the selected elements.

Purges all elements from the list.

To delete elements with confirmation:


1.    Switch on the Confirm each item to be purged mode.

2.    Select the  or  button.

3.    In the opened dialog box confirm purging of the elements:


Confirmation for every selected element.

Confirmation for all elements.

Refuse to delete the selected element.

Cancels the purge command.

Purging a document using the command line

KeyboardOK Command line: -PURGE, -PU

Command options:


Automatic full purge of a document. Including the purge of objects having zero-length geometry, empty text objects, annotative scales and registered applications.


Purging unused objects of the same nesting level. Objects having zero-length geometry and empty text objects are not purged.

Command prompts:

Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/Layers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length_geometry/Empty_text_objects/Orphaned_data/ANnotscales/Point_clouds/Full/All]:

Select the type of objects to purge, press ENTER.

Enter name(s) to purge <*>:

Enter names to purge or press ENTER to search for all elements of selected type.

Verify each name to be purged? [Yes/No] <Yes>:

To confirm purging of each element, select Yes.


Info: NanoCAD is an easy-to-use, affordable, and yet professional, CAD software tool for PC, that provides an outstanding user experience by providing enhanced performance, full capability, a classic interface and native.dwg format support. nanoCAD has been built to deliver design and project documentation for all industrial purposes. nanoCAD includes a full suite of basic and advanced CAD tools for 2D/3D drawing and creating industry-standard DWG-compatible CAD files. Our tool ensures groundbreaking, collaborative and customizable features to boost your efficiency, and includes several API's, allowing anything from routine task automation to complex CAD application development. You may download nanoCad for free, using the links below, and buy later, if you like it.
We collect Cookies
We use cookies to ensure that we give you the best experience on our website. By clicking “Accept”, you agree to our website’s cookie use as described in our Privacy Statement.