<?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 does the Color.FromColorIndex work? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-does-the-color-fromcolorindex-work/m-p/8938181#M21694</link>
    <description>&lt;P&gt;With ColorMethod.ByBlock or ColorMethod.ByLayer the 2 parameter are redondants.&lt;/P&gt;
&lt;P&gt;For indexed colors, you should ue: ColorMethod.ByAci.&lt;/P&gt;
&lt;P&gt;Or simpler, use the Entity.ColorIndex property instaed of Entity.Color.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 11:48:07 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2019-07-30T11:48:07Z</dc:date>
    <item>
      <title>How does the Color.FromColorIndex work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-the-color-fromcolorindex-work/m-p/8938082#M21693</link>
      <description>&lt;PRE&gt;attDef.Color = Color.FromColorIndex(ColorMethod.ByBlock, 1);&lt;/PRE&gt;&lt;P&gt;I found this code works for changing the entity's color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know in AutoCAD we have 0 to 256 index colors where 0 should be byblock and 256 should be bylayer. but what the two parameters in this method actually mean?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-the-color-fromcolorindex-work/m-p/8938082#M21693</guid>
      <dc:creator>ilovejingle</dc:creator>
      <dc:date>2019-07-30T11:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How does the Color.FromColorIndex work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-the-color-fromcolorindex-work/m-p/8938181#M21694</link>
      <description>&lt;P&gt;With ColorMethod.ByBlock or ColorMethod.ByLayer the 2 parameter are redondants.&lt;/P&gt;
&lt;P&gt;For indexed colors, you should ue: ColorMethod.ByAci.&lt;/P&gt;
&lt;P&gt;Or simpler, use the Entity.ColorIndex property instaed of Entity.Color.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:48:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-the-color-fromcolorindex-work/m-p/8938181#M21694</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-07-30T11:48:07Z</dc:date>
    </item>
  </channel>
</rss>

