Gail Rolland asked for a modification of a previous program, PURGE-ATTRIBS.LSP (February 2003), so that it removes certain selected attributes, but not all of them. Regular readers may recall that in the earlier program the function to do the purging used just a few lines of code to eliminate the entire set of attributes. Selecting which attributes to remove is considerably more complicated, but with the routines to select multiple drawings already in place, I was able to add the necessary functions to complete the much more useful PURGE-ATTRIBS-2.LSP.
The solution's two files, PURGE-ATTRIBS-2.LSP and PURGE-ATTRIBS-2.DCL, let you select not only a set of drawings, but also any common block reference, along with any number of attribute tags attached to the block reference. The program runs only in AutoCAD 2000 or later, including AutoCAD 2004.
HOW TO USE PURGE-ATTRIBS-2
Download the LSP and the DCL files and save them in the AutoCAD support directory. From the AutoCAD tools menu, choose Load Applications, or enter Appload at the AutoCAD Command prompt. In the Load/Unload Applications dialog box, select the PURGE-ATTRIBS-2.LSP file from the support directory where you installed it, then click Close. After you load the program, AutoCAD prompts you to enter PA to start.