<?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: Event Handler in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436836#M83745</link>
    <description>Try looking at the ObjecARx2006\samples\dotnet\EventsWatcher sample. &lt;BR /&gt;
&lt;BR /&gt;
That will show you how to handle all events, but it is in C#.</description>
    <pubDate>Thu, 29 Sep 2005 14:20:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-09-29T14:20:37Z</dc:date>
    <item>
      <title>Event Handler</title>
      <link>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436833#M83742</link>
      <description>I want to create a Event Handler wich starts a routine when a drawing is opened or a new one is created. The .NET dll is loaded with the acad.lsp.&lt;BR /&gt;
&lt;BR /&gt;
Can somebody give me a hint how to get this started ?&lt;BR /&gt;
&lt;BR /&gt;
Harold van Aarsen</description>
      <pubDate>Tue, 20 Sep 2005 10:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436833#M83742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-20T10:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler</title>
      <link>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436834#M83743</link>
      <description>This is the code I have created till now:&lt;BR /&gt;
It gets loaded, give no error on the try, but still gives no response. what can be the error. The promptMessage is a routine that writes to the commandline of autocad.&lt;BR /&gt;
&lt;BR /&gt;
#Region " Event Handlers "&lt;BR /&gt;
&lt;BR /&gt;
        Friend Function Set_Handlers() As Boolean&lt;BR /&gt;
            Dim db As Database = HostApplicationServices.WorkingDatabase&lt;BR /&gt;
&lt;BR /&gt;
            Try&lt;BR /&gt;
                AddHandler db.DwgFileOpened, New DatabaseIOEventHandler(AddressOf objDwgFileOpened)&lt;BR /&gt;
                PromptMessage("DwgFileOpened Handler added")&lt;BR /&gt;
                Return True&lt;BR /&gt;
&lt;BR /&gt;
            Catch ex As Exception&lt;BR /&gt;
                Message(ex.ToString)&lt;BR /&gt;
                Return False&lt;BR /&gt;
&lt;BR /&gt;
            End Try&lt;BR /&gt;
&lt;BR /&gt;
        End Function&lt;BR /&gt;
&lt;BR /&gt;
        Sub objDwgFileOpened(ByVal sender As Object, ByVal e As DatabaseIOEventArgs)&lt;BR /&gt;
            PromptMessage("Drawing opened !")&lt;BR /&gt;
        End Sub&lt;BR /&gt;
&lt;BR /&gt;
#End Region</description>
      <pubDate>Tue, 20 Sep 2005 12:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436834#M83743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-20T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler</title>
      <link>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436835#M83744</link>
      <description>Is there really no one who can help me out, maybe someone who is programming in C# ?&lt;BR /&gt;
&lt;BR /&gt;
Harold</description>
      <pubDate>Thu, 29 Sep 2005 10:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436835#M83744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-29T10:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler</title>
      <link>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436836#M83745</link>
      <description>Try looking at the ObjecARx2006\samples\dotnet\EventsWatcher sample. &lt;BR /&gt;
&lt;BR /&gt;
That will show you how to handle all events, but it is in C#.</description>
      <pubDate>Thu, 29 Sep 2005 14:20:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436836#M83745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-29T14:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Event Handler</title>
      <link>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436837#M83746</link>
      <description>thanks, i will trie directly tommorow morning</description>
      <pubDate>Thu, 29 Sep 2005 14:26:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/event-handler/m-p/1436837#M83746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-29T14:26:27Z</dc:date>
    </item>
  </channel>
</rss>

