Version 1.0.0
Platform AutoCad
CAD Clean Pack is a practical AutoLISP utility designed to clean AutoCAD drawings, reduce unnecessary data, convert object properties to ByLayer, flatten Z values, and create Xref/font/plot style checklist reports before project delivery.
CAD Clean Pack is a multi-purpose drawing cleanup and delivery control tool developed for AutoCAD users. It is especially useful for DWG files received from different sources, heavy drawings, non-standard drawings, and files that need to be checked before delivery.
With this LISP package, you can set object Z values to 0 where possible, remove duplicate or overlapping geometry using AutoCAD’s OVERKILL command, purge unused layers/styles/blocks/linetypes, convert object properties to ByLayer, and clean unnecessary hatch objects.
It can also remove empty layers, report missing Xref paths, and create a pre-delivery drawing packaging checklist including Xrefs, fonts/text styles, and plot styles.
CAD Clean Pack can be used in architectural, mechanical, electrical, structural, interior design, and general CAD workflows. It helps save time during project delivery, file optimization, drawing standardization, and technical checking processes.
Included commands:
PKG_FLATTEN
Sets object Z values to 0 where possible. Helps reduce trim, hatch, offset, and selection issues caused by objects located at different elevations in 2D drawings.
PKG_OVERKILL
Uses AutoCAD’s OVERKILL command to remove duplicate or overlapping geometry.
PKG_PURGE
Purges unused drawing definitions such as layers, linetypes, blocks, text styles, dimension styles, and registered applications.
PKG_BYLAYER
Converts selected or all object properties such as color, linetype, lineweight, and transparency where supported to ByLayer.
PKG_HATCHCLEAN
Deletes hatch objects smaller than a specified area or deletes user-selected hatch objects.
PKG_DELEMPTYLAYERS
Attempts to remove empty or unused layers using AutoCAD’s purge mechanism.
PKG_XREFREPORT
Checks Xref files in the drawing and reports missing Xref paths to XREF_REPORT.txt.
PKG_CHECKLIST
Creates a pre-delivery packaging checklist. It writes Xref, font/text style, and plot style status information to PACKAGE_CHECKLIST.txt.
PKG_CLEANRUN
Runs the main cleanup workflow in sequence: Flatten, ByLayer, Overkill, Hatch Clean, Purge, Empty Layer Clean, and Checklist.
Note:
This LISP is designed for standard AutoCAD objects. Some operations may be limited on 3D solids, surfaces, proxy objects, Civil 3D objects, or special AEC objects. It is recommended to create a backup copy of your drawing before running batch cleanup commands.