<?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 convert RGB value to ACI in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483155#M39063</link>
    <description>Don't the RGB values vary depending on whether your graphics card is set to 16 or 32 bit color?</description>
    <pubDate>Sat, 12 Nov 2005 04:42:24 GMT</pubDate>
    <dc:creator>GTVic</dc:creator>
    <dc:date>2005-11-12T04:42:24Z</dc:date>
    <item>
      <title>How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483150#M39058</link>
      <description>Hello all,&lt;BR /&gt;
&lt;BR /&gt;
I need code in VBA to convert RGB value to ACI&lt;BR /&gt;
&lt;BR /&gt;
I need not want to use dos_rgbtoaci, becuase I do not want to come out from VBA to convert value to ACI using Dos Lib.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your kind help in above problem.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Rajesh</description>
      <pubDate>Thu, 10 Nov 2005 07:22:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483150#M39058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-10T07:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483151#M39059</link>
      <description>Rajesh,&lt;BR /&gt;
&lt;BR /&gt;
Here are two functions RGB to ACI and&lt;BR /&gt;
ACI to RGB. Unfortunately no way other than&lt;BR /&gt;
brute force&lt;BR /&gt;
&lt;BR /&gt;
Fred C&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Function getAcadColor(intColor As Integer) As Integer&lt;BR /&gt;
' this function converts an RGB color to Autocad Color&lt;BR /&gt;
&lt;BR /&gt;
Select Case intColor&lt;BR /&gt;
    Case 1&lt;BR /&gt;
        getAcadColor = 7&lt;BR /&gt;
    Case 2&lt;BR /&gt;
        getAcadColor = 7&lt;BR /&gt;
    Case 3&lt;BR /&gt;
        getAcadColor = 1&lt;BR /&gt;
    Case 4&lt;BR /&gt;
        getAcadColor = 3&lt;BR /&gt;
    Case 5&lt;BR /&gt;
        getAcadColor = 5&lt;BR /&gt;
    Case 6&lt;BR /&gt;
        getAcadColor = 2&lt;BR /&gt;
    Case 7&lt;BR /&gt;
        getAcadColor = 6&lt;BR /&gt;
    Case 8&lt;BR /&gt;
        getAcadColor = 4&lt;BR /&gt;
    Case 9&lt;BR /&gt;
        getAcadColor = 26&lt;BR /&gt;
    Case 10&lt;BR /&gt;
        getAcadColor = 86&lt;BR /&gt;
    Case 11&lt;BR /&gt;
        getAcadColor = 194&lt;BR /&gt;
    Case 12&lt;BR /&gt;
        getAcadColor = 46&lt;BR /&gt;
    Case 13&lt;BR /&gt;
        getAcadColor = 192&lt;BR /&gt;
    Case 14&lt;BR /&gt;
        getAcadColor = 112&lt;BR /&gt;
    Case 15&lt;BR /&gt;
        getAcadColor = 254&lt;BR /&gt;
    Case 16&lt;BR /&gt;
        getAcadColor = 253&lt;BR /&gt;
    Case 17&lt;BR /&gt;
        getAcadColor = 171&lt;BR /&gt;
    Case 18&lt;BR /&gt;
        getAcadColor = 15&lt;BR /&gt;
    Case 19&lt;BR /&gt;
        getAcadColor = 41&lt;BR /&gt;
    Case 20&lt;BR /&gt;
        getAcadColor = 131&lt;BR /&gt;
    Case 21&lt;BR /&gt;
        getAcadColor = 208&lt;BR /&gt;
    Case 22&lt;BR /&gt;
        getAcadColor = 11&lt;BR /&gt;
    Case 23&lt;BR /&gt;
        getAcadColor = 150&lt;BR /&gt;
    Case 24&lt;BR /&gt;
        getAcadColor = 141&lt;BR /&gt;
    Case 25&lt;BR /&gt;
        getAcadColor = 188&lt;BR /&gt;
    Case 26&lt;BR /&gt;
        getAcadColor = 6&lt;BR /&gt;
    Case 27&lt;BR /&gt;
        getAcadColor = 2&lt;BR /&gt;
    Case 28&lt;BR /&gt;
        getAcadColor = 4&lt;BR /&gt;
    Case 29&lt;BR /&gt;
        getAcadColor = 192&lt;BR /&gt;
    Case 30&lt;BR /&gt;
        getAcadColor = 26&lt;BR /&gt;
    Case 31&lt;BR /&gt;
        getAcadColor = 112&lt;BR /&gt;
    Case 32&lt;BR /&gt;
        getAcadColor = 5&lt;BR /&gt;
    Case 33&lt;BR /&gt;
        getAcadColor = 140&lt;BR /&gt;
    Case 34&lt;BR /&gt;
        getAcadColor = 121&lt;BR /&gt;
    Case 35&lt;BR /&gt;
        getAcadColor = 71&lt;BR /&gt;
    Case 36&lt;BR /&gt;
        getAcadColor = 41&lt;BR /&gt;
    Case 37&lt;BR /&gt;
        getAcadColor = 141&lt;BR /&gt;
    Case 38&lt;BR /&gt;
        getAcadColor = 211&lt;BR /&gt;
    Case 39&lt;BR /&gt;
        getAcadColor = 181&lt;BR /&gt;
    Case 40&lt;BR /&gt;
        getAcadColor = 31&lt;BR /&gt;
    Case 41&lt;BR /&gt;
        getAcadColor = 142&lt;BR /&gt;
    Case 42&lt;BR /&gt;
        getAcadColor = 132&lt;BR /&gt;
    Case 43&lt;BR /&gt;
        getAcadColor = 52&lt;BR /&gt;
    Case 44&lt;BR /&gt;
        getAcadColor = 40&lt;BR /&gt;
    Case 45&lt;BR /&gt;
        getAcadColor = 30&lt;BR /&gt;
    Case 46&lt;BR /&gt;
        getAcadColor = 30&lt;BR /&gt;
    Case 47&lt;BR /&gt;
        getAcadColor = 47&lt;BR /&gt;
    Case 48&lt;BR /&gt;
        getAcadColor = 252&lt;BR /&gt;
    Case 49&lt;BR /&gt;
        getAcadColor = 188&lt;BR /&gt;
    Case 50&lt;BR /&gt;
        getAcadColor = 95&lt;BR /&gt;
    Case 51&lt;BR /&gt;
        getAcadColor = 29&lt;BR /&gt;
    Case 52&lt;BR /&gt;
        getAcadColor = 17&lt;BR /&gt;
    Case 53&lt;BR /&gt;
        getAcadColor = 34&lt;BR /&gt;
    Case 54&lt;BR /&gt;
        getAcadColor = 197&lt;BR /&gt;
    Case 55&lt;BR /&gt;
        getAcadColor = 182&lt;BR /&gt;
    Case 56&lt;BR /&gt;
        getAcadColor = 29&lt;BR /&gt;
End Select&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Public Function AcadToRGB(CadColor As Integer) As Long&lt;BR /&gt;
&lt;BR /&gt;
If CadColor = 0 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 1 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 2 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 3 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 4 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 255)&lt;BR /&gt;
ElseIf CadColor = 5 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 6 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 7 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 255, 255)&lt;BR /&gt;
ElseIf CadColor = 8 Then&lt;BR /&gt;
   AcadToRGB = RGB(65, 65, 65)&lt;BR /&gt;
ElseIf CadColor = 9 Then&lt;BR /&gt;
   AcadToRGB = RGB(128, 128, 128)&lt;BR /&gt;
ElseIf CadColor = 10 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 11 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 170, 170)&lt;BR /&gt;
ElseIf CadColor = 12 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 13 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 126, 126)&lt;BR /&gt;
ElseIf CadColor = 14 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 15 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 86, 86)&lt;BR /&gt;
ElseIf CadColor = 16 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 17 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 69, 69)&lt;BR /&gt;
ElseIf CadColor = 18 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 0, 0)&lt;BR /&gt;
ElseIf CadColor = 19 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 53, 53)&lt;BR /&gt;
ElseIf CadColor = 20 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 63, 0)&lt;BR /&gt;
ElseIf CadColor = 21 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 191, 170)&lt;BR /&gt;
ElseIf CadColor = 22 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 46, 0)&lt;BR /&gt;
ElseIf CadColor = 23 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 141, 126)&lt;BR /&gt;
ElseIf CadColor = 24 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 31, 0)&lt;BR /&gt;
ElseIf CadColor = 25 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 96, 86)&lt;BR /&gt;
ElseIf CadColor = 26 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 25, 0)&lt;BR /&gt;
ElseIf CadColor = 27 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 78, 69)&lt;BR /&gt;
ElseIf CadColor = 28 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 19, 0)&lt;BR /&gt;
ElseIf CadColor = 29 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 59, 53)&lt;BR /&gt;
ElseIf CadColor = 30 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 127, 0)&lt;BR /&gt;
ElseIf CadColor = 31 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 212, 170)&lt;BR /&gt;
ElseIf CadColor = 32 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 94, 0)&lt;BR /&gt;
ElseIf CadColor = 33 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 157, 126)&lt;BR /&gt;
ElseIf CadColor = 34 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 64, 0)&lt;BR /&gt;
ElseIf CadColor = 35 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 107, 86)&lt;BR /&gt;
ElseIf CadColor = 36 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 53, 0)&lt;BR /&gt;
ElseIf CadColor = 37 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 86, 69)&lt;BR /&gt;
ElseIf CadColor = 38 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 39, 0)&lt;BR /&gt;
ElseIf CadColor = 39 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 66, 53)&lt;BR /&gt;
ElseIf CadColor = 40 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 191, 0)&lt;BR /&gt;
ElseIf CadColor = 41 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 234, 170)&lt;BR /&gt;
ElseIf CadColor = 42 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 141, 0)&lt;BR /&gt;
ElseIf CadColor = 43 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 173, 126)&lt;BR /&gt;
ElseIf CadColor = 44 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 96, 0)&lt;BR /&gt;
ElseIf CadColor = 45 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 118, 86)&lt;BR /&gt;
ElseIf CadColor = 46 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 78, 0)&lt;BR /&gt;
ElseIf CadColor = 47 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 95, 69)&lt;BR /&gt;
ElseIf CadColor = 48 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 59, 0)&lt;BR /&gt;
ElseIf CadColor = 49 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 73, 53)&lt;BR /&gt;
ElseIf CadColor = 50 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 51 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 255, 170)&lt;BR /&gt;
ElseIf CadColor = 52 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 189, 0)&lt;BR /&gt;
ElseIf CadColor = 53 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 189, 126)&lt;BR /&gt;
ElseIf CadColor = 54 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 129, 0)&lt;BR /&gt;
ElseIf CadColor = 55 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 129, 86)&lt;BR /&gt;
ElseIf CadColor = 56 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 104, 0)&lt;BR /&gt;
ElseIf CadColor = 57 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 104, 69)&lt;BR /&gt;
ElseIf CadColor = 58 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 79, 0)&lt;BR /&gt;
ElseIf CadColor = 59 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 79, 53)&lt;BR /&gt;
ElseIf CadColor = 60 Then&lt;BR /&gt;
   AcadToRGB = RGB(191, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 61 Then&lt;BR /&gt;
   AcadToRGB = RGB(234, 255, 170)&lt;BR /&gt;
ElseIf CadColor = 62 Then&lt;BR /&gt;
   AcadToRGB = RGB(141, 189, 0)&lt;BR /&gt;
ElseIf CadColor = 63 Then&lt;BR /&gt;
   AcadToRGB = RGB(173, 189, 126)&lt;BR /&gt;
ElseIf CadColor = 64 Then&lt;BR /&gt;
   AcadToRGB = RGB(96, 129, 0)&lt;BR /&gt;
ElseIf CadColor = 65 Then&lt;BR /&gt;
   AcadToRGB = RGB(118, 129, 86)&lt;BR /&gt;
ElseIf CadColor = 66 Then&lt;BR /&gt;
   AcadToRGB = RGB(78, 104, 0)&lt;BR /&gt;
ElseIf CadColor = 67 Then&lt;BR /&gt;
   AcadToRGB = RGB(95, 104, 69)&lt;BR /&gt;
ElseIf CadColor = 68 Then&lt;BR /&gt;
   AcadToRGB = RGB(59, 79, 0)&lt;BR /&gt;
ElseIf CadColor = 69 Then&lt;BR /&gt;
   AcadToRGB = RGB(73, 79, 53)&lt;BR /&gt;
ElseIf CadColor = 70 Then&lt;BR /&gt;
   AcadToRGB = RGB(127, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 71 Then&lt;BR /&gt;
   AcadToRGB = RGB(212, 255, 170)&lt;BR /&gt;
ElseIf CadColor = 72 Then&lt;BR /&gt;
   AcadToRGB = RGB(94, 189, 0)&lt;BR /&gt;
ElseIf CadColor = 73 Then&lt;BR /&gt;
   AcadToRGB = RGB(157, 189, 126)&lt;BR /&gt;
ElseIf CadColor = 74 Then&lt;BR /&gt;
   AcadToRGB = RGB(64, 129, 0)&lt;BR /&gt;
ElseIf CadColor = 75 Then&lt;BR /&gt;
   AcadToRGB = RGB(107, 129, 86)&lt;BR /&gt;
ElseIf CadColor = 76 Then&lt;BR /&gt;
   AcadToRGB = RGB(52, 104, 0)&lt;BR /&gt;
ElseIf CadColor = 77 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 104, 69)&lt;BR /&gt;
ElseIf CadColor = 78 Then&lt;BR /&gt;
   AcadToRGB = RGB(39, 79, 0)&lt;BR /&gt;
ElseIf CadColor = 79 Then&lt;BR /&gt;
   AcadToRGB = RGB(66, 79, 53)&lt;BR /&gt;
ElseIf CadColor = 80 Then&lt;BR /&gt;
   AcadToRGB = RGB(63, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 81 Then&lt;BR /&gt;
   AcadToRGB = RGB(191, 255, 170)&lt;BR /&gt;
ElseIf CadColor = 82 Then&lt;BR /&gt;
   AcadToRGB = RGB(46, 189, 0)&lt;BR /&gt;
ElseIf CadColor = 83 Then&lt;BR /&gt;
   AcadToRGB = RGB(141, 189, 126)&lt;BR /&gt;
ElseIf CadColor = 84 Then&lt;BR /&gt;
   AcadToRGB = RGB(31, 129, 0)&lt;BR /&gt;
ElseIf CadColor = 85 Then&lt;BR /&gt;
   AcadToRGB = RGB(96, 129, 86)&lt;BR /&gt;
ElseIf CadColor = 86 Then&lt;BR /&gt;
   AcadToRGB = RGB(25, 104, 0)&lt;BR /&gt;
ElseIf CadColor = 87 Then&lt;BR /&gt;
   AcadToRGB = RGB(78, 104, 69)&lt;BR /&gt;
ElseIf CadColor = 88 Then&lt;BR /&gt;
   AcadToRGB = RGB(19, 79, 0)&lt;BR /&gt;
ElseIf CadColor = 89 Then&lt;BR /&gt;
   AcadToRGB = RGB(59, 79, 53)&lt;BR /&gt;
ElseIf CadColor = 90 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 0)&lt;BR /&gt;
ElseIf CadColor = 91 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 255, 170)&lt;BR /&gt;
ElseIf CadColor = 92 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 189, 0)&lt;BR /&gt;
ElseIf CadColor = 93 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 189, 126)&lt;BR /&gt;
ElseIf CadColor = 94 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 129, 0)&lt;BR /&gt;
ElseIf CadColor = 95 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 129, 86)&lt;BR /&gt;
ElseIf CadColor = 96 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 104, 0)&lt;BR /&gt;
ElseIf CadColor = 97 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 104, 69)&lt;BR /&gt;
ElseIf CadColor = 98 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 79, 0)&lt;BR /&gt;
ElseIf CadColor = 99 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 79, 53)&lt;BR /&gt;
ElseIf CadColor = 100 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 63)&lt;BR /&gt;
ElseIf CadColor = 101 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 255, 191)&lt;BR /&gt;
ElseIf CadColor = 102 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 189, 46)&lt;BR /&gt;
ElseIf CadColor = 103 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 189, 141)&lt;BR /&gt;
ElseIf CadColor = 104 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 129, 31)&lt;BR /&gt;
ElseIf CadColor = 105 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 129, 96)&lt;BR /&gt;
ElseIf CadColor = 106 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 104, 25)&lt;BR /&gt;
ElseIf CadColor = 107 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 104, 78)&lt;BR /&gt;
ElseIf CadColor = 108 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 79, 19)&lt;BR /&gt;
ElseIf CadColor = 109 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 79, 59)&lt;BR /&gt;
ElseIf CadColor = 110 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 127)&lt;BR /&gt;
ElseIf CadColor = 111 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 255, 212)&lt;BR /&gt;
ElseIf CadColor = 112 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 189, 94)&lt;BR /&gt;
ElseIf CadColor = 113 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 189, 157)&lt;BR /&gt;
ElseIf CadColor = 114 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 129, 64)&lt;BR /&gt;
ElseIf CadColor = 115 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 129, 107)&lt;BR /&gt;
ElseIf CadColor = 116 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 104, 52)&lt;BR /&gt;
ElseIf CadColor = 117 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 104, 86)&lt;BR /&gt;
ElseIf CadColor = 118 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 79, 39)&lt;BR /&gt;
ElseIf CadColor = 119 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 79, 66)&lt;BR /&gt;
ElseIf CadColor = 120 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 191)&lt;BR /&gt;
ElseIf CadColor = 121 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 255, 234)&lt;BR /&gt;
ElseIf CadColor = 122 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 189, 141)&lt;BR /&gt;
ElseIf CadColor = 123 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 189, 173)&lt;BR /&gt;
ElseIf CadColor = 124 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 129, 96)&lt;BR /&gt;
ElseIf CadColor = 125 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 129, 118)&lt;BR /&gt;
ElseIf CadColor = 126 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 104, 78)&lt;BR /&gt;
ElseIf CadColor = 127 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 104, 95)&lt;BR /&gt;
ElseIf CadColor = 128 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 79, 59)&lt;BR /&gt;
ElseIf CadColor = 129 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 79, 73)&lt;BR /&gt;
ElseIf CadColor = 130 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 255, 255)&lt;BR /&gt;
ElseIf CadColor = 131 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 255, 255)&lt;BR /&gt;
ElseIf CadColor = 132 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 189, 189)&lt;BR /&gt;
ElseIf CadColor = 133 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 189, 189)&lt;BR /&gt;
ElseIf CadColor = 134 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 129, 129)&lt;BR /&gt;
ElseIf CadColor = 135 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 129, 129)&lt;BR /&gt;
ElseIf CadColor = 136 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 104, 104)&lt;BR /&gt;
ElseIf CadColor = 137 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 104, 104)&lt;BR /&gt;
ElseIf CadColor = 138 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 79, 79)&lt;BR /&gt;
ElseIf CadColor = 139 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 79, 79)&lt;BR /&gt;
ElseIf CadColor = 140 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 191, 255)&lt;BR /&gt;
ElseIf CadColor = 141 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 234, 255)&lt;BR /&gt;
ElseIf CadColor = 142 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 141, 189)&lt;BR /&gt;
ElseIf CadColor = 143 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 173, 189)&lt;BR /&gt;
ElseIf CadColor = 144 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 96, 129)&lt;BR /&gt;
ElseIf CadColor = 145 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 118, 129)&lt;BR /&gt;
ElseIf CadColor = 146 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 78, 104)&lt;BR /&gt;
ElseIf CadColor = 147 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 95, 104)&lt;BR /&gt;
ElseIf CadColor = 148 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 59, 79)&lt;BR /&gt;
ElseIf CadColor = 149 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 73, 79)&lt;BR /&gt;
ElseIf CadColor = 150 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 127, 255)&lt;BR /&gt;
ElseIf CadColor = 151 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 212, 255)&lt;BR /&gt;
ElseIf CadColor = 152 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 94, 189)&lt;BR /&gt;
ElseIf CadColor = 153 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 157, 189)&lt;BR /&gt;
ElseIf CadColor = 154 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 64, 129)&lt;BR /&gt;
ElseIf CadColor = 155 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 107, 129)&lt;BR /&gt;
ElseIf CadColor = 156 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 52, 104)&lt;BR /&gt;
ElseIf CadColor = 157 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 86, 104)&lt;BR /&gt;
ElseIf CadColor = 158 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 39, 79)&lt;BR /&gt;
ElseIf CadColor = 159 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 66, 79)&lt;BR /&gt;
ElseIf CadColor = 160 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 63, 255)&lt;BR /&gt;
ElseIf CadColor = 161 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 191, 255)&lt;BR /&gt;
ElseIf CadColor = 162 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 46, 189)&lt;BR /&gt;
ElseIf CadColor = 163 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 141, 189)&lt;BR /&gt;
ElseIf CadColor = 164 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 31, 129)&lt;BR /&gt;
ElseIf CadColor = 165 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 96, 129)&lt;BR /&gt;
ElseIf CadColor = 166 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 25, 104)&lt;BR /&gt;
ElseIf CadColor = 167 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 78, 104)&lt;BR /&gt;
ElseIf CadColor = 168 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 19, 79)&lt;BR /&gt;
ElseIf CadColor = 169 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 59, 79)&lt;BR /&gt;
ElseIf CadColor = 170 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 171 Then&lt;BR /&gt;
   AcadToRGB = RGB(170, 170, 255)&lt;BR /&gt;
ElseIf CadColor = 172 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 189)&lt;BR /&gt;
ElseIf CadColor = 173 Then&lt;BR /&gt;
   AcadToRGB = RGB(126, 126, 189)&lt;BR /&gt;
ElseIf CadColor = 174 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 129)&lt;BR /&gt;
ElseIf CadColor = 175 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 86, 129)&lt;BR /&gt;
ElseIf CadColor = 176 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 104)&lt;BR /&gt;
ElseIf CadColor = 177 Then&lt;BR /&gt;
   AcadToRGB = RGB(69, 69, 104)&lt;BR /&gt;
ElseIf CadColor = 178 Then&lt;BR /&gt;
   AcadToRGB = RGB(0, 0, 79)&lt;BR /&gt;
ElseIf CadColor = 179 Then&lt;BR /&gt;
   AcadToRGB = RGB(53, 53, 79)&lt;BR /&gt;
ElseIf CadColor = 180 Then&lt;BR /&gt;
   AcadToRGB = RGB(63, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 181 Then&lt;BR /&gt;
   AcadToRGB = RGB(191, 170, 255)&lt;BR /&gt;
ElseIf CadColor = 182 Then&lt;BR /&gt;
   AcadToRGB = RGB(46, 0, 189)&lt;BR /&gt;
ElseIf CadColor = 183 Then&lt;BR /&gt;
   AcadToRGB = RGB(141, 126, 189)&lt;BR /&gt;
ElseIf CadColor = 184 Then&lt;BR /&gt;
   AcadToRGB = RGB(31, 0, 129)&lt;BR /&gt;
ElseIf CadColor = 185 Then&lt;BR /&gt;
   AcadToRGB = RGB(96, 86, 129)&lt;BR /&gt;
ElseIf CadColor = 186 Then&lt;BR /&gt;
   AcadToRGB = RGB(25, 0, 104)&lt;BR /&gt;
ElseIf CadColor = 187 Then&lt;BR /&gt;
   AcadToRGB = RGB(78, 69, 104)&lt;BR /&gt;
ElseIf CadColor = 188 Then&lt;BR /&gt;
   AcadToRGB = RGB(19, 0, 79)&lt;BR /&gt;
ElseIf CadColor = 189 Then&lt;BR /&gt;
   AcadToRGB = RGB(59, 53, 79)&lt;BR /&gt;
ElseIf CadColor = 190 Then&lt;BR /&gt;
   AcadToRGB = RGB(127, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 191 Then&lt;BR /&gt;
   AcadToRGB = RGB(212, 170, 255)&lt;BR /&gt;
ElseIf CadColor = 192 Then&lt;BR /&gt;
   AcadToRGB = RGB(94, 0, 189)&lt;BR /&gt;
ElseIf CadColor = 193 Then&lt;BR /&gt;
   AcadToRGB = RGB(157, 126, 189)&lt;BR /&gt;
ElseIf CadColor = 194 Then&lt;BR /&gt;
   AcadToRGB = RGB(64, 0, 129)&lt;BR /&gt;
ElseIf CadColor = 195 Then&lt;BR /&gt;
   AcadToRGB = RGB(107, 86, 129)&lt;BR /&gt;
ElseIf CadColor = 196 Then&lt;BR /&gt;
   AcadToRGB = RGB(52, 0, 104)&lt;BR /&gt;
ElseIf CadColor = 197 Then&lt;BR /&gt;
   AcadToRGB = RGB(86, 69, 104)&lt;BR /&gt;
ElseIf CadColor = 198 Then&lt;BR /&gt;
   AcadToRGB = RGB(39, 0, 79)&lt;BR /&gt;
ElseIf CadColor = 199 Then&lt;BR /&gt;
   AcadToRGB = RGB(66, 53, 79)&lt;BR /&gt;
ElseIf CadColor = 200 Then&lt;BR /&gt;
   AcadToRGB = RGB(191, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 201 Then&lt;BR /&gt;
   AcadToRGB = RGB(234, 170, 255)&lt;BR /&gt;
ElseIf CadColor = 202 Then&lt;BR /&gt;
   AcadToRGB = RGB(141, 0, 189)&lt;BR /&gt;
ElseIf CadColor = 203 Then&lt;BR /&gt;
   AcadToRGB = RGB(173, 126, 189)&lt;BR /&gt;
ElseIf CadColor = 204 Then&lt;BR /&gt;
   AcadToRGB = RGB(96, 0, 129)&lt;BR /&gt;
ElseIf CadColor = 205 Then&lt;BR /&gt;
   AcadToRGB = RGB(118, 86, 129)&lt;BR /&gt;
ElseIf CadColor = 206 Then&lt;BR /&gt;
   AcadToRGB = RGB(78, 0, 104)&lt;BR /&gt;
ElseIf CadColor = 207 Then&lt;BR /&gt;
   AcadToRGB = RGB(95, 69, 104)&lt;BR /&gt;
ElseIf CadColor = 208 Then&lt;BR /&gt;
   AcadToRGB = RGB(59, 0, 79)&lt;BR /&gt;
ElseIf CadColor = 209 Then&lt;BR /&gt;
   AcadToRGB = RGB(73, 53, 79)&lt;BR /&gt;
ElseIf CadColor = 210 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 255)&lt;BR /&gt;
ElseIf CadColor = 211 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 170, 255)&lt;BR /&gt;
ElseIf CadColor = 212 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 0, 189)&lt;BR /&gt;
ElseIf CadColor = 213 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 126, 189)&lt;BR /&gt;
ElseIf CadColor = 214 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 0, 129)&lt;BR /&gt;
ElseIf CadColor = 215 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 86, 129)&lt;BR /&gt;
ElseIf CadColor = 216 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 0, 104)&lt;BR /&gt;
ElseIf CadColor = 217 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 69, 104)&lt;BR /&gt;
ElseIf CadColor = 218 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 0, 79)&lt;BR /&gt;
ElseIf CadColor = 219 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 53, 79)&lt;BR /&gt;
ElseIf CadColor = 220 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 191)&lt;BR /&gt;
ElseIf CadColor = 221 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 170, 234)&lt;BR /&gt;
ElseIf CadColor = 222 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 0, 141)&lt;BR /&gt;
ElseIf CadColor = 223 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 126, 173)&lt;BR /&gt;
ElseIf CadColor = 224 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 0, 96)&lt;BR /&gt;
ElseIf CadColor = 225 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 86, 118)&lt;BR /&gt;
ElseIf CadColor = 226 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 0, 78)&lt;BR /&gt;
ElseIf CadColor = 227 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 69, 95)&lt;BR /&gt;
ElseIf CadColor = 228 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 0, 59)&lt;BR /&gt;
ElseIf CadColor = 229 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 53, 73)&lt;BR /&gt;
ElseIf CadColor = 230 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 127)&lt;BR /&gt;
ElseIf CadColor = 231 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 170, 212)&lt;BR /&gt;
ElseIf CadColor = 232 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 0, 94)&lt;BR /&gt;
ElseIf CadColor = 233 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 126, 157)&lt;BR /&gt;
ElseIf CadColor = 234 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 0, 64)&lt;BR /&gt;
ElseIf CadColor = 235 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 86, 107)&lt;BR /&gt;
ElseIf CadColor = 236 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 0, 52)&lt;BR /&gt;
ElseIf CadColor = 237 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 69, 86)&lt;BR /&gt;
ElseIf CadColor = 238 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 0, 39)&lt;BR /&gt;
ElseIf CadColor = 239 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 53, 66)&lt;BR /&gt;
ElseIf CadColor = 240 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 0, 63)&lt;BR /&gt;
ElseIf CadColor = 241 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 170, 191)&lt;BR /&gt;
ElseIf CadColor = 242 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 0, 46)&lt;BR /&gt;
ElseIf CadColor = 243 Then&lt;BR /&gt;
   AcadToRGB = RGB(189, 126, 141)&lt;BR /&gt;
ElseIf CadColor = 244 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 0, 31)&lt;BR /&gt;
ElseIf CadColor = 245 Then&lt;BR /&gt;
   AcadToRGB = RGB(129, 86, 96)&lt;BR /&gt;
ElseIf CadColor = 246 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 0, 25)&lt;BR /&gt;
ElseIf CadColor = 247 Then&lt;BR /&gt;
   AcadToRGB = RGB(104, 69, 78)&lt;BR /&gt;
ElseIf CadColor = 248 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 0, 19)&lt;BR /&gt;
ElseIf CadColor = 249 Then&lt;BR /&gt;
   AcadToRGB = RGB(79, 53, 59)&lt;BR /&gt;
ElseIf CadColor = 250 Then&lt;BR /&gt;
   AcadToRGB = RGB(51, 51, 51)&lt;BR /&gt;
ElseIf CadColor = 251 Then&lt;BR /&gt;
   AcadToRGB = RGB(80, 80, 80)&lt;BR /&gt;
ElseIf CadColor = 252 Then&lt;BR /&gt;
   AcadToRGB = RGB(105, 105, 105)&lt;BR /&gt;
ElseIf CadColor = 253 Then&lt;BR /&gt;
   AcadToRGB = RGB(130, 130, 130)&lt;BR /&gt;
ElseIf CadColor = 254 Then&lt;BR /&gt;
   AcadToRGB = RGB(190, 190, 190)&lt;BR /&gt;
ElseIf CadColor = 255 Then&lt;BR /&gt;
   AcadToRGB = RGB(255, 255, 255)&lt;BR /&gt;
&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
End Function</description>
      <pubDate>Fri, 11 Nov 2005 06:21:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483151#M39059</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2005-11-11T06:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483152#M39060</link>
      <description>Hi Fred C&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot for providing useful code, That will help a lot.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
&lt;BR /&gt;
Rajesh</description>
      <pubDate>Fri, 11 Nov 2005 08:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483152#M39060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-11T08:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483153#M39061</link>
      <description>What's wrong with using the .colorindex property?&lt;BR /&gt;
&lt;BR /&gt;
Dim col As New AcadAcCmColor&lt;BR /&gt;
    Call col.SetRGB(125, 173, 35)&lt;BR /&gt;
    MsgBox "RGB:" &amp;amp; col.Red &amp;amp; "," &amp;amp; col.Green &amp;amp; "," &amp;amp; col.Blue &amp;amp; " = " &amp;amp; vbCrLf &amp;amp; _&lt;BR /&gt;
           "ACAD Color Index=" &amp;amp; col.ColorIndex &amp;amp; vbCrLf</description>
      <pubDate>Fri, 11 Nov 2005 17:23:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483153#M39061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-11T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483154#M39062</link>
      <description>Allen,&lt;BR /&gt;
&lt;BR /&gt;
AcadAcCmColor  doesn't exist in Acad 2002&lt;BR /&gt;
&lt;BR /&gt;
Fred C</description>
      <pubDate>Fri, 11 Nov 2005 23:49:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483154#M39062</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2005-11-11T23:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483155#M39063</link>
      <description>Don't the RGB values vary depending on whether your graphics card is set to 16 or 32 bit color?</description>
      <pubDate>Sat, 12 Nov 2005 04:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483155#M39063</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2005-11-12T04:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483156#M39064</link>
      <description>fxcastil wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; AcadAcCmColor  doesn't exist in Acad 2002&lt;BR /&gt;
&lt;BR /&gt;
How about taking the given random RGB values and stepping through the &lt;BR /&gt;
known values.  Calculate the differences in R,G,B then add them &lt;BR /&gt;
together.  The smallest difference is the closest ACI color?  I'm no &lt;BR /&gt;
color expert, are there any better approaches to determine the closest &lt;BR /&gt;
match?&lt;BR /&gt;
&lt;BR /&gt;
I also need to do this in a version independent mode.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Mon, 14 Nov 2005 13:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483156#M39064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-14T13:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483157#M39065</link>
      <description>Terry,&lt;BR /&gt;
&lt;BR /&gt;
I tried what you said but not don't get exact match, if a close enough color is all you need then your approach is ok.&lt;BR /&gt;
&lt;BR /&gt;
I don't see the problem with using a look up method all the typing has already been done.  I know techies always want to get the math solution.&lt;BR /&gt;
&lt;BR /&gt;
Fred C.</description>
      <pubDate>Mon, 14 Nov 2005 13:44:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483157#M39065</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2005-11-14T13:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483158#M39066</link>
      <description>Yeah, tried it too,but if you have it print out a color wheel, youll see that the RGB convertion that you are talking about will reverse any "between even RGB values (1 value and the other 2 are 0)", and thus dont match the ColorIndex value of that color.  As mentionned earlyer, without AcCmColor, it is impossible to do a mathematical conversion.  And keep in mind that even with AcCmColor, IT DOES NOT GIVE YOU THE CLOSEST ACI MATCH, BUT THE SMALLEST ACI NUMBER UNDER THAT CALCULATED ONE! (close, but no cigar; Pale yellow cannot be pure yellow when dealing with AutoCAD and doing space annalysis according to color....  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  To do it right,it must be "brutly done"...  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Wed, 16 Nov 2005 18:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483158#M39066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-16T18:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert RGB value to ACI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483159#M39067</link>
      <description>nyme wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Yeah, tried it too,but if you have it print out a color wheel, youll&lt;BR /&gt;
&amp;gt; see that the RGB convertion that you are talking about will reverse&lt;BR /&gt;
&amp;gt; any "between even RGB values (1 value and the other 2 are 0)", and&lt;BR /&gt;
&amp;gt; thus dont match the ColorIndex value of that color.  As mentionned&lt;BR /&gt;
&amp;gt; earlyer, without AcCmColor, it is impossible to do a mathematical&lt;BR /&gt;
&amp;gt; conversion.  And keep in mind that even with AcCmColor, IT DOES NOT&lt;BR /&gt;
&amp;gt; GIVE YOU THE CLOSEST ACI MATCH, BUT THE SMALLEST ACI NUMBER UNDER&lt;BR /&gt;
&amp;gt; THAT CALCULATED ONE! (close, but no cigar; Pale yellow cannot be pure&lt;BR /&gt;
&amp;gt; yellow when dealing with AutoCAD and doing space annalysis according&lt;BR /&gt;
&amp;gt; to color....  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  To do it right,it must be "brutly done"...  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
What has always surprised me is that the AutoCAD Colour Index table&lt;BR /&gt;
where they state the values for all 256 colours, that they use&lt;BR /&gt;
fractional values.  Visual C++ and most other languages only allow you&lt;BR /&gt;
to specify the RGB components at whole values.  So I wonder how they&lt;BR /&gt;
manage to do it.&lt;BR /&gt;
&lt;BR /&gt;
Concerning an earlier comment about 16 and 32 bit.  I know that a&lt;BR /&gt;
computer on 256 colours must utilise pallettes in their program so that&lt;BR /&gt;
the correct colours will be mapped and displayed in their program.  But&lt;BR /&gt;
these days everyone is using full colour so it is not so much a problem.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;BR /&gt;
&lt;BR /&gt;
--</description>
      <pubDate>Tue, 29 Nov 2005 11:51:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-convert-rgb-value-to-aci/m-p/1483159#M39067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-29T11:51:29Z</dc:date>
    </item>
  </channel>
</rss>

