[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.
Block counter
Tip# 2015 By Alexander Smirnov On 01-Feb-2005
4
Rated By 1 users Downloaded : 1308
Categories : Standard Blocks
Software type : AutoCAD
Rename File To : Tip2015: BLCX.lsp
Another nice Visual LISP routine from Alexander Smirnov, BLCX.lsp counts blocks. Results can be directed to an Excel spreadsheet.

Alexander's second tip, Block Counter (Tip #2015), is simple enough in concept. It counts blocks and reports the number found within a selection window. But what is interesting is that the output can be directed to an Excel spreadsheet. If you are looking for a good example of how this can be accomplished, be sure to download the tip and take a close look at the source code. The approach taken is very direct and a clear example. You must have Microsoft Excel installed on your computer for this utility to create an Excel file, because the function will directly address the Excel application object. Load the LSP file and then type the command Blcx at the AutoCAD Command line to run the function. This is a wonderful tip for Visual LISP programmers looking for a good example of interfacing AutoCAD and Excel.

 

 

Average Rating:
4


User comments