[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.
ALSPSOL0308: Convert Old Table to New Table Format
Tip# ALSPSOL0308 By Tony Hotchkiss On 01-Mar-2008
3.5
Rated By 2 users Downloaded : 6760
Categories : Table Styles, Tables
Software type : AutoCAD
Rename File To : Tip ALSPSOL0308: MakeTable.LSP
MAKETABLE.LSP: Routine selects formatted lines, polylines, and text and converts it all to an AutoCAD table object.

Jeff Smith of Ohio e-mailed a request to create a spreadsheet kind of table by converting tables made prior to the introduction of AutoCAD's Table command. At first, I thought this could be accomplished in AutoCAD 2008 using the data extraction method of the Table command. Data extraction is a powerful tool, but when the data is in the form of lines, polylines, text, and mtext, it is quite cumbersome and time consuming to get the data in a usable format. The solution was to write the routine MAKETABLE.LSP, which allows the user to select lines, polylines, and any type of text and convert them into an AutoCAD table object that replaces the original data.
Get the Code!
Download the MAKETABLE.LSP file from Cadalyst's Get the Code! library (March 2008) and save it in AutoCAD's Support directory. Use the Appload facility by selecting Tools / Load Application, then browse to select MAKETABLE.LSP.

How to Use the MAKETABLE.LSP Code
To start the program, enter MTB on the Command line, and you will be prompted to "Select old table with a window: Upper left point:" followed by the prompt, "Lower right point:". The table that is made of lines, polylines, and text is automatically replaced by an AutoCAD table object that contains all original data and headers. These figures show the table before and after conversion.


 

 

Average Rating:
3.5


User comments
Comment by Jung,M
Posted on 2011-08-01 15:55:58
Something isn't working right for me. I was hoping it would be able to create a table from objects that came from an exploded table. The routine will build a table but seems to be ignoring all the text. The table is blank after is finishes. Tried it in AutoCAD 2008 and Civil 3D 2009 with the same results.