[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.
Extract Layers to TXT file
Tip# 3848 By Robert Zipprich On 17-Mar-2012
0
Rated By 0 users Downloaded : 428
Categories : Layer Tools, File Data, Drawing Properties
Software type : AutoCAD 2012
Rename File To : XTR_LYRS.lsp
Create a text file from the layers in an AutoCAD drawing.

This routine by Robert Zipprich allows you to generate a nicely formatted text file of the layers in the current AutoCAD drawing, including the layer name, linetype, color, and current status. It is very simple in operation: Simply load the LISP file, run the command XTR_LYRS, and the output text file is generated. Subsequent executions of the routine append the results to the file, if it exists. The code itself is easy to follow, so you might even want to add a feature of your own such as automatically launching the output file in Notepad, or adding more information to the header or footer.

 

Average Rating:
0


User comments
Comment by Somppi,Robert
Posted on 2012-03-20 07:34:13
Lynn Allen covered a couple other ways to do this a few weeks ago here: http://www.cadalyst.com/video


Log In