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. |