<?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: Issue when creating an AutoCAD object and ActiveX. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3612742#M53459</link>
    <description>&lt;P&gt;Scroll down to the bottom of the MS Page and grab the VB code.&amp;nbsp; Paste it into a class module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before your code to get or start AutoCAD use this command: "MessageFilter.Register"&lt;/P&gt;&lt;P&gt;Add the end of you start AutoCAD code use this command: "MessageFilter.Revoke"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2012 12:30:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-10T12:30:45Z</dc:date>
    <item>
      <title>Issue when creating an AutoCAD object and ActiveX.</title>
      <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3606616#M53454</link>
      <description>&lt;P&gt;I have code to create an object within a Try block. Specifically an AutoCAD object. What is strange is that sometimes it works and others it throws a Cannot create ActiveX object. What is really peculiar is that it indeed opens AutoCAD (I see in the task manager). It's like there is some kind of delay when establishing the connection and VB can't really cope with this Frankly I am at a total loss.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 17:36:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3606616#M53454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-04T17:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when creating an AutoCAD object and ActiveX.</title>
      <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3606652#M53455</link>
      <description>&lt;P&gt;You may need to wait until it's ready to accept the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports System.Threading

Public Class isQuiescent
    Public Function isQuiescent(ByRef AcadApp As Autodesk.AutoCAD.Interop.AcadApplication) As Boolean

        Try
            While Not AcadApp.GetAcadState.IsQuiescent
                Thread.Sleep(100)
            End While
        Catch ex As Exception
        End Try

        Return True

    End Function
End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 17:56:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3606652#M53455</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2012-09-04T17:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when creating an AutoCAD object and ActiveX.</title>
      <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3606708#M53456</link>
      <description>&lt;PRE&gt;        Try
            AcadApp = GetObject(, "AutoCAD.Application.18")
        Catch ex As Exception
            AcadApp = CreateObject("AutoCAD.Application.18")
        End Try

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Where would you call that function? After the CreateObject.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 18:25:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3606708#M53456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-04T18:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when creating an AutoCAD object and ActiveX.</title>
      <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3609306#M53457</link>
      <description>&lt;P&gt;Check out this MS article.&amp;nbsp; I had the same problem until I implemented this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ms228772(VS.80).aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/ms228772(VS.80).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 11:57:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3609306#M53457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-06T11:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when creating an AutoCAD object and ActiveX.</title>
      <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3610934#M53458</link>
      <description>&lt;P&gt;Thanks for the info. However, I have no idea how to implement this in the context of my standalone app using VB2010.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be so kind as to provide am details of how you did this.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3610934#M53458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-07T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when creating an AutoCAD object and ActiveX.</title>
      <link>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3612742#M53459</link>
      <description>&lt;P&gt;Scroll down to the bottom of the MS Page and grab the VB code.&amp;nbsp; Paste it into a class module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before your code to get or start AutoCAD use this command: "MessageFilter.Register"&lt;/P&gt;&lt;P&gt;Add the end of you start AutoCAD code use this command: "MessageFilter.Revoke"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 12:30:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issue-when-creating-an-autocad-object-and-activex/m-p/3612742#M53459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-10T12:30:45Z</dc:date>
    </item>
  </channel>
</rss>

