<?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: Problem in loading Application in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270503#M6630</link>
    <description>&lt;P&gt;it is ok we have to use "&lt;SPAN&gt;AutoCAD.AcCmColor.23"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 02:20:46 GMT</pubDate>
    <dc:creator>rmcefr</dc:creator>
    <dc:date>2021-04-27T02:20:46Z</dc:date>
    <item>
      <title>Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/8065774#M6626</link>
      <description>&lt;P&gt;I have a VBA program for in which I am getting error as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run time error'-2147221005(800401f3)':&lt;/P&gt;&lt;P&gt;Problem in loading application for the&amp;nbsp;code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set color = AcadApplication.GetInterfaceObject("AutoCAD.AcCmColor.2")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 64 bit system&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please give solution for this&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:48:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/8065774#M6626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T15:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/8065842#M6627</link>
      <description>&lt;P&gt;The ProgId argument you passed into GetInterfaceObject() method is probably wrong. It should be like&lt;/P&gt;
&lt;P&gt;"AutoCAD.AcCmColor.xx", where xx is AutoCAD version, which must be a 2-digit number, because the very early version of AutoCAD, when it had 1-digit version number, did not have AcCmColor class used then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not say whichversion of AutoCAD you use, so here is what you need to use&lt;/P&gt;
&lt;P&gt;For Acad2015, use AutoCAD.AcCmColor.20&lt;/P&gt;
&lt;P&gt;For Acad2016/17, use AutoCAD.AcCmColor.21&lt;/P&gt;
&lt;P&gt;For Acad2018, use AutoCAd.AcCmColor.22&lt;/P&gt;
&lt;P&gt;For Acad2019, use AutoCAD.AcCmColor.23&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/8065842#M6627</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2018-06-13T16:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/8065869#M6628</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:19:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/8065869#M6628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T16:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270495#M6629</link>
      <description>&lt;P&gt;Hello Sir&lt;/P&gt;&lt;P&gt;what about if we use autoCAD2021 , what is the ProgId here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 02:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270495#M6629</guid>
      <dc:creator>rmcefr</dc:creator>
      <dc:date>2021-04-27T02:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270503#M6630</link>
      <description>&lt;P&gt;it is ok we have to use "&lt;SPAN&gt;AutoCAD.AcCmColor.23"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 02:20:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270503#M6630</guid>
      <dc:creator>rmcefr</dc:creator>
      <dc:date>2021-04-27T02:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270511#M6631</link>
      <description>&lt;P&gt;You could have found it out easily/quickly by looking up windows registry "\HKEY_CLASSES_ROOT\AutoCAD.AcCmColor.XX"&lt;/P&gt;
&lt;P&gt;For AutoCAD2019 and 2020, it is "AutoCAD.AcCmColor.23", or AutoCAD2021, it is "AutoCAD.AcCmColor.24".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, it is not OK to use the ProgID for wrong version of AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 02:24:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10270511#M6631</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-04-27T02:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10271647#M6632</link>
      <description>&lt;P&gt;Yes Sir 24, sorry&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 12:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10271647#M6632</guid>
      <dc:creator>rmcefr</dc:creator>
      <dc:date>2021-04-27T12:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading Application</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10506315#M6633</link>
      <description>&lt;P&gt;I found this from AUGI Forum :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim &lt;FONT color="#FF0000"&gt;sVer&lt;/FONT&gt; As String = Left(acadDoc.GetVariable("ACADVER"), 2)&lt;BR /&gt;Set Color = acadApp.GetInterfaceObject("AutoCAD.AcCmColor." &amp;amp; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;sVer&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 18:50:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-in-loading-application/m-p/10506315#M6633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-29T18:50:05Z</dc:date>
    </item>
  </channel>
</rss>

