<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Table LISP Help - Lisp to set Row Style, Enable Table Breaks, Repeat top labels in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/table-lisp-help-lisp-to-set-row-style-enable-table-breaks-repeat/m-p/5507900#M340075</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am importing tables into autocad from excel and I always have to turn on table breaks and repeat top labels.&amp;nbsp;I'm looking for a little help on writing a lisp that will automatically set the top row style to Title, the second row to Header. I also would like enable table breaks and repeat top labels. I'm new to LISPs, I have compiled the following lisp so far. Any help would be much appreciated.:)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(defun C:format-panel-schedule()&lt;BR /&gt;*command to run lisp ^&lt;BR /&gt;(setq tbl (vlax-ename-&amp;gt;vla-object(car(entsel))))&lt;BR /&gt;(setq rows (vla-get-rows tbl))&lt;BR /&gt;(setq currentRow 0)&lt;BR /&gt;(vla-setrowheight tbl currentRow 1) ;Change row height (TEST)&lt;BR /&gt;(setq currentRow (+ 0 currentRow))&lt;BR /&gt;(setq TotalRowCount (vla-get-rows tbl))&lt;BR /&gt;(setq RowNumber 0)&lt;BR /&gt;(while (&amp;lt; RowNumber TotalRowCount)&lt;BR /&gt;(vla-setrowheight tbl RowNumber 5.707)&lt;BR /&gt;*sets all row heights ^&lt;BR /&gt;(setq RowNumber (+ RowNumber 1))&lt;BR /&gt;);while&lt;/P&gt;&lt;P&gt;(vla-setcolumnwidth tbl 0 100)&lt;BR /&gt;(vla-setcolumnwidth tbl 1 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 2 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 3 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 4 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 5 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 6 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 7 15)&lt;BR /&gt;(vla-setcolumnwidth tbl 8 100)&lt;/P&gt;&lt;P&gt;*SELECTS TABLE LOCATION&lt;BR /&gt;(setq tbl (getpoint))&lt;BR /&gt;(COMMAND "EDITTABLECELL" tbl "A1:Z1000" "C" "U" "Q")&lt;/P&gt;&lt;P&gt;*SETS TOP ROW OF TABLE TO Title&lt;BR /&gt;(COMMAND "EDITTABLECELL" tbl "A1:I1" "S" "S" "Title" "Q")&lt;/P&gt;&lt;P&gt;*SETS ALL OTHER CELLS TO DATA&lt;BR /&gt;(COMMAND "EDITTABLECELL" tbl "A2:I4" "S" "S" "Data" "Q")&lt;/P&gt;&lt;P&gt;*SETS DESCRIPTION AND NOTES CELLS TO DESCRIPTION&lt;BR /&gt;(COMMAND "EDITTABLECELL" tbl "A5:A1000" "S" "S" "Description" "Q")&lt;/P&gt;&lt;P&gt;*SETS DESCRIPTION AND NOTES CELLS TO DESCRIPTION&lt;BR /&gt;(COMMAND "EDITTABLECELL" tbl "I5:I1000" "S" "S" "Description" "Q")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Sun, 15 Feb 2015 19:11:35 GMT</pubDate>
    <dc:creator>njs</dc:creator>
    <dc:date>2015-02-15T19:11:35Z</dc:date>
  </channel>
</rss>

