[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Remove selected attributes
Tip# ALSP703 By Tony Hotchkiss On 01-Jul-2003
Rated By 1 users Downloaded : 547
Categories : Purge
Software type : AutoCAD
purge-attribs-2.lsp. Routine lets you select which attributes to remove from multiple drawings.

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.

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.



Average Rating:

User comments