<?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 open AutoCAD 2010 from VB.NET 2010 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214292#M58551</link>
    <description>&lt;P&gt;For VB with 2010 I think you have to set Embed Interops Types to false also.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2011 18:27:54 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2011-11-02T18:27:54Z</dc:date>
    <item>
      <title>Unable to open AutoCAD 2010 from VB.NET 2020</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214236#M58549</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;I have a piece of code&amp;nbsp; that opens and controls AutoCAD from VB.NET. It was working fine with AutoCAD 2008 and VB.NET 2003 or 2008 on XP. I have since upgraded to Wndows 7 (32 bit), VS 2010, and AutoCAD 2010. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have downloaded and installed the ObjectARX 2010 sdk. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have referenced the &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Autodesk.AutoCAD.Interop.Common.dll and &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;AutoDesk.AutoCAD.Interop.dl&lt;/FONT&gt;&lt;FONT size="2"&gt;l&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;from C:\ObjectARX 2010\inc-win32 in my project. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Copy Local for these 2 references is set to True. If I set it to False and try&amp;nbsp;start debugging, it can't find them.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The code I used with AutoCAD 2008 to open a new instance of the application was:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Shared&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; oAcad &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; AutoCAD.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;AcadApplication&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;oAcad = &lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; AutoCAD.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;AcadApplication&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;This generates&amp;nbsp;the error:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Retrieving the COM class factory for component with CLSID {6D7AE628-FF41-4CD3-91DD-34825BB1A251} failed due to the following error: 80040154&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;I have also tried the GetObject (with AutoCAD already open)&amp;nbsp;and CreateObject(with AutoCAD not open)&amp;nbsp;methods of invoking AutoCAD as follows:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;oAcad = GetObject(, &lt;FONT color="#ff0000"&gt;"AutoCAD.Application.18"&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;oAcad = CreateObject(&lt;FONT color="#ff0000"&gt;"AutoCAD.Application.18"&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;These methods generate the error:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Cannot create ActiveX component&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;I think there is something basic I am doing wrong or is not installed correctly, Anyone know what it is?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 17:49:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214236#M58549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-02T17:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open AutoCAD 2010 from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214240#M58550</link>
      <description>&lt;P&gt;Sorry that title should read VB.NET 2010&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 17:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214240#M58550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-02T17:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open AutoCAD 2010 from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214292#M58551</link>
      <description>&lt;P&gt;For VB with 2010 I think you have to set Embed Interops Types to false also.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 18:27:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3214292#M58551</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2011-11-02T18:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open AutoCAD 2010 from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3218536#M58552</link>
      <description>&lt;P&gt;This turned out to be a problem with the AutoCAD 2010 installation. It was not packaged correctly for distribution as a Virtual Application. Once I reinstalled locally with the setup from AutoDesk the application's COM components got propertly registered and the interop assemblies could invoke them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have a different problem where I get the same errorabout 60% of the time. AutoCAD loads, but often is too slow and results in the same error anyway. Obviiously there is a timeout period which is too quick for AutoCAD to load and register as an ActiveX component.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2011 19:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3218536#M58552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-06T19:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to open AutoCAD 2010 from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3218544#M58553</link>
      <description>&lt;P&gt;I will close this thread an open a new one for the problem of getting an error of&lt;/P&gt;&lt;P&gt;Cannot create ActiveX Component&lt;/P&gt;&lt;P&gt;before AutoCAD&amp;nbsp;has finished loading when it is slow to load.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2011 19:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-open-autocad-2010-from-vb-net-2020/m-p/3218544#M58553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-06T19:13:33Z</dc:date>
    </item>
  </channel>
</rss>

