<?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: TableStyle Text Color in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142272#M81811</link>
    <description>&lt;P&gt;Probably need to use &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-ActiveX/files/GUID-095F270A-0770-4886-AB4D-1AE8034B951F-htm.html" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;VLA-SETCOLOR.&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 19:36:02 GMT</pubDate>
    <dc:creator>ronjonp</dc:creator>
    <dc:date>2019-11-12T19:36:02Z</dc:date>
    <item>
      <title>TableStyle Text Color</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142019#M81810</link>
      <description>&lt;P&gt;I've created a new text style via AutoLisp but am struggling trying to set the text color. I would like to set the Title, Header, and Data row text colors per my attachment (ACI colors 12, 11, and ByLayer respectively). I've tried (vla-put-TextColor) and (vla-SetCellContentColor) without success.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 18:04:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142019#M81810</guid>
      <dc:creator>MarkSanchezSPEC</dc:creator>
      <dc:date>2019-11-12T18:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: TableStyle Text Color</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142272#M81811</link>
      <description>&lt;P&gt;Probably need to use &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-ActiveX/files/GUID-095F270A-0770-4886-AB4D-1AE8034B951F-htm.html" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;VLA-SETCOLOR.&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 19:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142272#M81811</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-11-12T19:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: TableStyle Text Color</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142362#M81812</link>
      <description>&lt;P&gt;Quick example to set the colors of the style from a picked table:&lt;/P&gt;&lt;PRE&gt;(defun c:foo (/ co e el o)
  ;; RJP » 2019-11-12
  (cond	((and (setq e (car (entsel)))
	      (= "ACAD_TABLE" (cdr (assoc 0 (setq el (entget e)))))
	      (setq co (vla-get-truecolor (vlax-ename-&amp;gt;vla-object e)))
	      (setq o (cdr (assoc 342 el)))
	 )
	 (vla-put-colorindex co 12)
	 (vla-setcolor (setq o (vlax-ename-&amp;gt;vla-object o)) actitlerow co)
	 (vla-put-colorindex co 11)
	 (vla-setcolor o acheaderrow co)
	 (vla-put-colorindex co 256)
	 (vla-setcolor o acdatarow co)
	)
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2019 20:29:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142362#M81812</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-11-12T20:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: TableStyle Text Color</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142380#M81813</link>
      <description>&lt;P&gt;vla-SetColor worked as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    (setq colObj (vlax-create-object (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2))))
    (vla-put-colormethod colObj acColorMethodByACI)
    (vla-put-colorindex colObj 12)
    (vla-SetColor tblSty acTitleRow colObj)
    (vla-put-colorindex colObj 11)
    (vla-SetColor tblSty acHeaderRow colObj)
    (vla-put-colorindex colObj 256)
    (vla-SetColor tblSty acDataRow colObj)
&lt;BR /&gt;(vlax-release-object colObj)&lt;/PRE&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 20:40:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142380#M81813</guid>
      <dc:creator>MarkSanchezSPEC</dc:creator>
      <dc:date>2019-11-12T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: TableStyle Text Color</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142467#M81814</link>
      <description>&lt;P&gt;Glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .. not sure if you saw the code above but it will let you select a table to change the style properties ( not much error checking ).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 21:17:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142467#M81814</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-11-12T21:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: TableStyle Text Color</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142489#M81815</link>
      <description>&lt;P&gt;I did. I'm just adding a table style for now but will keep that snippet handy too.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 21:24:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/tablestyle-text-color/m-p/9142489#M81815</guid>
      <dc:creator>MarkSanchezSPEC</dc:creator>
      <dc:date>2019-11-12T21:24:35Z</dc:date>
    </item>
  </channel>
</rss>

