<?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 Re: How to Rotate Text  in an specific cell inside a table? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7664266#M110321</link>
    <description>&lt;P&gt;Try using the &lt;EM&gt;setrotation&lt;/EM&gt; method&lt;/P&gt;
&lt;PRE&gt;(vla-setrotation vlaobj 0 1 0 desired_angle)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table_cell_rotation.gif" style="width: 483px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/445610iFCE225A828ED17FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="table_cell_rotation.gif" alt="table_cell_rotation.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 16:00:44 GMT</pubDate>
    <dc:creator>Ranjit_Singh</dc:creator>
    <dc:date>2018-01-04T16:00:44Z</dc:date>
    <item>
      <title>How to Rotate Text  in an specific cell inside a table?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7663909#M110320</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a lisp function to reformat a table. The function takes care of adjusting columns and row sizes as well as doing a little bit of formating of the text inside the cells. What I have not been able to do is to rotate the text contained inside 1 of the specific cells.&amp;nbsp;I will appreciate if somebody can give me an example of how to do it. Here is a partial portion of my lisp function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    (vla-setcolumnwidth tbl 0 5.0)			; sets columns' width
    (vla-setcolumnwidth tbl 1 7.5)
    (vla-setcolumnwidth tbl 2 10.0)
    (vla-setcolumnwidth tbl 3 7.5)
    (vla-setcolumnwidth tbl 4 12.5)
    (vla-setcolumnwidth tbl 5 7.5)
    (vla-setcolumnwidth tbl 6 12.5)
    (vla-setcolumnwidth tbl 7 3)

    (setq TotalRowCount (vla-get-rows tbl))		; sets text's and row's height
    (setq RowNumber 0)
    (while (&amp;lt; RowNumber TotalRowCount)
        (vla-setcelltextheight tbl RowNumber 0 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 1 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 2 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 3 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 4 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 5 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 6 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 7 1.5)	; sets text's height

        (vla-SetCellAlignment tbl RowNumber 0 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 1 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 2 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 3 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 4 acMiddleLeft)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 5 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 6 acMiddleLeft)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 7 acMiddleCenter)	; sets text's alignment

        (vla-setrowheight tbl RowNumber 3.0)		; sets row's height
        (setq RowNumber (+ RowNumber 1))
    );while&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jan 2018 14:24:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7663909#M110320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T14:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Rotate Text  in an specific cell inside a table?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7664266#M110321</link>
      <description>&lt;P&gt;Try using the &lt;EM&gt;setrotation&lt;/EM&gt; method&lt;/P&gt;
&lt;PRE&gt;(vla-setrotation vlaobj 0 1 0 desired_angle)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table_cell_rotation.gif" style="width: 483px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/445610iFCE225A828ED17FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="table_cell_rotation.gif" alt="table_cell_rotation.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 16:00:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7664266#M110321</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2018-01-04T16:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Rotate Text  in an specific cell inside a table?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7664916#M110322</link>
      <description>&lt;P&gt;I got the rotation of the specific cell working with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (vla-SetTextRotation tbl RowNumber 7 3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sets that particular cell (the one on column 7) to 270 degrees. Where 0 = 0 Deg; 1 = 90 Deg; 2 = 180 Deg &amp;amp; 3 = 270 Deg.&lt;/P&gt;&lt;P&gt;This is how my code look like now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    (setq TotalRowCount (vla-get-rows tbl))		; sets text's and row's height
    (setq RowNumber 0)
    (while (&amp;lt; RowNumber TotalRowCount)
        (vla-setcelltextheight tbl RowNumber 0 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 1 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 2 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 3 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 4 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 5 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 6 1.5)	; sets text's height
        (vla-setcelltextheight tbl RowNumber 7 1.5)	; sets text's height

        (vla-SetCellAlignment tbl RowNumber 0 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 1 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 2 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 3 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 4 acMiddleLeft)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 5 acMiddleCenter)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 6 acMiddleLeft)	; sets text's alignment
        (vla-SetCellAlignment tbl RowNumber 7 acMiddleCenter)	; sets text's alignment

&lt;EM&gt;&lt;STRONG&gt; 	(vla-SetTextRotation tbl RowNumber 7 3)		; Rotates Text to 270&lt;/STRONG&gt;&lt;/EM&gt;

        (vla-setrowheight tbl RowNumber 3.0)		; sets row's height
        (setq RowNumber (+ RowNumber 1))
    );while&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 19:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-rotate-text-in-an-specific-cell-inside-a-table/m-p/7664916#M110322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T19:31:11Z</dc:date>
    </item>
  </channel>
</rss>

