<?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: Unable to get AutoCAD object using 'GetObject' method using VB6 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6678948#M8525</link>
    <description>&lt;P&gt;Yes. I always tried keeping AutoCAD running. We do use multiple AutoCAD versions. I tried getting the specific version first and then the&amp;nbsp;generic version later. But couldn't get a positive result.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 09:42:17 GMT</pubDate>
    <dc:creator>cadsindiaadn</dc:creator>
    <dc:date>2016-11-10T09:42:17Z</dc:date>
    <item>
      <title>Unable to get AutoCAD object using 'GetObject' method using VB6</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6676436#M8523</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have a few legacy VB6 projects, in which we try to get the AutoCAD object from the below sample code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Error Resume Next&lt;/P&gt;&lt;P&gt;Public AcadApp As Object&lt;/P&gt;&lt;P&gt;Set objApp = GetObject(, "AutoCAD.Application")&lt;/P&gt;&lt;P&gt;If Err Then&lt;/P&gt;&lt;P&gt;Err.Clear&lt;/P&gt;&lt;P&gt;Set objApp = GetObject(, "AutoCAD.Application.20")&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If Err Then&lt;/P&gt;&lt;P&gt;Err.Clear&lt;/P&gt;&lt;P&gt;Set objApp = GetObject(, "AutoCAD.Application.21")&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code was working perfect, right from AutoCAD 2005 till AutoCAD 2017, when the code was finally compiled in Win 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when we compiled the same source, the 'GetObject' method fails to create an instance of the AutoCAD object.&lt;/P&gt;&lt;P&gt;The error code is 429 "ActiveX component can't create object".&lt;/P&gt;&lt;P&gt;We are using x64 version AutoCAD 2015, 2016 and 2017 and the OS is Windows 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas the 'CreateObject' method creates the AutoCAD objects perfectly.&lt;/P&gt;&lt;P&gt;Set AcadApp = CreateObject("AutoCAD.Application.20")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be helpful if you could resolve this ASAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;CADSINDIAADN&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 09:24:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6676436#M8523</guid>
      <dc:creator>cadsindiaadn</dc:creator>
      <dc:date>2016-11-09T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get AutoCAD object using 'GetObject' method using VB6</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6677037#M8524</link>
      <description>&lt;P&gt;You probably know this. but since you did not mention, I ask anyway:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For all the ... GetObject(, "AutoCAD.Application...") method calls, when the exception 429 is raised, you are sure there is an AutoCAD instance running, aren't you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually, the Program ID "AutoCAD.Application" in the GetObject()/CreateObject() does not need to have version suffix, unless the running computer has multiple AutoCAD installed and you need/prefer a certain version (but in this case, you'd test specific version first, then next preferred version, and then eventually the generic "AutoCAD.Application", meaning "whatever AutoCAD version, give me or create me an instance").&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 14:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6677037#M8524</guid>
      <dc:creator>Norman_Yuan</dc:creator>
      <dc:date>2016-11-09T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get AutoCAD object using 'GetObject' method using VB6</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6678948#M8525</link>
      <description>&lt;P&gt;Yes. I always tried keeping AutoCAD running. We do use multiple AutoCAD versions. I tried getting the specific version first and then the&amp;nbsp;generic version later. But couldn't get a positive result.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 09:42:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unable-to-get-autocad-object-using-getobject-method-using-vb6/m-p/6678948#M8525</guid>
      <dc:creator>cadsindiaadn</dc:creator>
      <dc:date>2016-11-10T09:42:17Z</dc:date>
    </item>
  </channel>
</rss>

