<?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: Can't find ModelessOperationWill Start Event in Dot net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447337#M55740</link>
    <description>&lt;P&gt;Anyways. At least you look into it. That is nice of you.&lt;/P&gt;&lt;P&gt;Maybe somebody else&amp;nbsp; from autodesk help us. Now is the time we see lack of Tony Tanzilla in this forum .&lt;/P&gt;&lt;P&gt;So many unanswered question.&lt;/P&gt;&lt;P&gt;Cheers Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2012 18:19:17 GMT</pubDate>
    <dc:creator>JanetDavidson</dc:creator>
    <dc:date>2012-05-07T18:19:17Z</dc:date>
    <item>
      <title>Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444281#M55726</link>
      <description>&lt;P&gt;Hello everybody. Hope somebody could help me&lt;/P&gt;&lt;P&gt;In objectArx&amp;nbsp; Editor&amp;nbsp; object has&amp;nbsp;&amp;nbsp;ModelessOperationWillStart . But how could I use this in my vb net ?&lt;/P&gt;&lt;P&gt;ObjectBrowser doesn't show it ?!!!&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 12:06:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444281#M55726</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-04T12:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444463#M55727</link>
      <description>&lt;P&gt;I believe modelessOperationWillStart() is an ObjectRAX's AcEditorReactor class' methos, which is only available since Acad2013. It is not exposed to ObjectARX .NET API (as we all know that not&amp;nbsp;everything in ObjectARX is exposed in its .NET API).&amp;nbsp;thus you do not find it in the Object Browser.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 13:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444463#M55727</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2012-05-04T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444667#M55728</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I believe modelessOperationWillStart() is an ObjectRAX's AcEditorReactor class' methos, which is only available since Acad2013. It is not exposed to ObjectARX .NET API (as we all know that not&amp;nbsp;everything in ObjectARX is exposed in its .NET API).&amp;nbsp;thus you do not find it in the Object Browser.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Norman! This method (modelessOperationWillStart) available &lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;starting with version&lt;/SPAN&gt;&lt;/SPAN&gt; AutoCAD 2000 (!!!) &lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;but not yet&lt;/SPAN&gt;&lt;/SPAN&gt; exposed in .NET&lt;/P&gt;
&lt;P&gt;Without ObjectARX there is no way to have modelessOperation notification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 14:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444667#M55728</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-04T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444771#M55729</link>
      <description>&lt;P&gt;Well, I am not very familiar with ObjectARX. But that method and/or the class (the method's owner) have been renamed in Acad2013. In this snse, one can say it is only available in Acad2013. Just like, there is a class called Person with method Run, in early version. Then in new version you rename the class Person to Human (for good or bad reasons). So, you cannot say Human.Run(0 exists since beginning in regard to programming API.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 15:26:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444771#M55729</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2012-05-04T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444779#M55730</link>
      <description>&lt;P&gt;it is really a pain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I like to check if user change&amp;nbsp;block &amp;nbsp;attributes in Properties Window (palette) . and I don't want to have an objectmodify event all the time running . that is a shame we can't do this using API.&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 15:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444779#M55730</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-04T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444943#M55731</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Well, I am not very familiar with ObjectARX. But that method and/or the class (the method's owner) have been renamed in Acad2013. In this snse, one can say it is only available in Acad2013. Just like, there is a class called Person with method Run, in early version. Then in new version you rename the class Person to Human (for good or bad reasons). So, you cannot say Human.Run(0 exists since beginning in regard to programming API.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry, Norman, &lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you're wrong&lt;/SPAN&gt;&lt;/SPAN&gt;! The name of class (and base class) and name of method and parameters are the same in ObjectARX 2000 and 2013. &lt;SPAN&gt;&lt;SPAN class="hps"&gt;The only difference&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is that&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;this function&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in AutoCAD 2000&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;exported&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;acad.exe,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and in 2013&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;accore.dll. I skip "unicode revolution" in AutoCAD 2007.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;//
// ObjectARX SDK 2000
// file aced.h
//
class AcEditorReactor: public AcRxEventReactor 
{ 
public:
//// skiped
    virtual void modelessOperationWillStart(const char* contextStr);
    virtual void modelessOperationEnded(const char* contextStr);
//// skiped
};

//
// ObjectARX SDK 2013
// file aced.h
//

class AcEditorReactor: public AcRxEventReactor 
{ 
public:
//// skiped
    virtual void modelessOperationWillStart(const ACHAR* contextStr);
    virtual void modelessOperationEnded(const ACHAR* contextStr);
//// skiped
};
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;You admit&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;your mistake&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 17:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444943#M55731</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-04T17:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444963#M55732</link>
      <description>&lt;P&gt;Janet!&lt;/P&gt;
&lt;P&gt;What about user change attribute(s) not from properties palette but (for example) with help of command &lt;STRONG&gt;_ATTEDIT&amp;nbsp;&lt;/STRONG&gt; ?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 17:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3444963#M55732</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-04T17:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3445123#M55733</link>
      <description>&lt;P&gt;Hi again Alex and Norman.&lt;/P&gt;&lt;P&gt;I took care at that part (attedit) .&amp;nbsp; I&amp;nbsp; am watching &amp;nbsp;commandstart event, If it is attedit then I start&amp;nbsp; objectmodify event and if the object being modified is&amp;nbsp;target block, I do necessary things I need to do . But for properties palette there is no command to catch. So basically I have to have objectmodify , on, &amp;nbsp;to watch the database all the times. there is big impact on database in my application.&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 18:55:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3445123#M55733</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-04T18:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3445199#M55734</link>
      <description>&lt;P&gt;Janet. Are you ready to create arx-file (ie study C++ and ObjectARX) , which help you to check object was modified from OPM or no?&lt;/P&gt;
&lt;P&gt;If your's answer is NO, than single solution is objectmodify event, which must be simplest in order to speed up AutoCAD.&lt;/P&gt;
&lt;P&gt;If your's answer is YES, I can help you in &lt;A href="http://forums.autodesk.com/t5/Autodesk-ObjectARX/bd-p/34" target="_self"&gt;ObjectARX discussion group&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 19:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3445199#M55734</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-04T19:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3446541#M55736</link>
      <description>&lt;P&gt;I've attach arx-files which exported function:&lt;/P&gt;
&lt;PRE&gt;int IsOPMChangeProps();&lt;/PRE&gt;
&lt;P&gt;This function can be P/Invoke from .NET (C#, VB.NET, etc.) Solution is for AutoCAD 2010...2012&lt;/P&gt;
&lt;PRE&gt;[DllImport("OPMTest2010x32.arx",CallingConvention = CallingConvention.Cdecl, EntryPoint = "IsOPMChangeProps")]&lt;BR /&gt;
private static int IsOPMChangeProps2010x32();&lt;BR /&gt;
[DllImport("OPMTest2010x64.arx",CallingConvention = CallingConvention.Cdecl, EntryPoint = "IsOPMChangeProps")]&lt;BR /&gt;
private static int IsOPMChangeProps2010x64();&lt;/PRE&gt;
&lt;P&gt;arx-file must be loaded with help of call:&lt;/P&gt;
&lt;PRE&gt;// For x86 (x32)&lt;BR /&gt;
SystemObjects.DynamicLinker.LoadModule("OPMTest2010x32.arx", false, false);&lt;BR /&gt;
// For x64&lt;BR /&gt;
SystemObjects.DynamicLinker.LoadModule("OPMTest2010x64.arx", false, false);&lt;/PRE&gt;
&lt;P&gt;But objectModified event must being active because this function can check status but not event (reactor).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 10:16:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3446541#M55736</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-07T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3446687#M55737</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Oh my God , You are so caring. I had a moving this weekend and couldn't check on internet the whole 3 days.&lt;/P&gt;&lt;P&gt;Right now I am back on track. Still I didn't get into your posts but I&amp;nbsp; will . Just wanted to let you know I&amp;nbsp; am really&lt;/P&gt;&lt;P&gt;appreciated . I will look and If I have question I will ask you for sure if you don't mind.&lt;/P&gt;&lt;P&gt;Thanks you so much for your help Alex.&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 12:18:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3446687#M55737</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-07T12:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447015#M55738</link>
      <description>&lt;P&gt;Hi Again Alex . I didn't understand one word of c++ code you provided, It is my fault , no offence , I am not that smart&amp;nbsp;.&amp;nbsp; I said to myself&amp;nbsp;&amp;nbsp; let's just use Alex's Arx compiled file &amp;nbsp;and implement it in my project.&amp;nbsp;Below code &amp;nbsp;is what I did . But it doesn't work. what did I&amp;nbsp;do wrong ? .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me rephrase myself to avoid any confustion.&lt;/P&gt;&lt;P&gt;this is how &amp;nbsp;I&amp;nbsp;implement this for Attedit command. When commandStart triggers . If the command is Attedit I add handler for objectmodify event.&lt;/P&gt;&lt;P&gt;If object had any changes then I do my stuff . And then when CommandEnded&amp;nbsp; triggers ,I remove ObjectModify handler.&lt;/P&gt;&lt;P&gt;so basically Commandstart and Commandend events always running. But ObjectModify doesn't run always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now let's go back to your solution for properties palette. How would I know user start changing an atrribute so I active the objectmodify event ?&lt;/P&gt;&lt;P&gt;Please give me some light here . Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  Public Sub Initialize() Implements IExtensionApplication.Initialize
      SystemObjects.DynamicLinker.LoadModule("c:\OPMTest2010x64.arx", False, False)
       Properties_palette_changed_helper.Start_monitoring_pallette()
    End Sub
    Public Sub Terminate() Implements IExtensionApplication.Terminate
    End Sub



Public Class Properties_palette_changed_helper
    &amp;lt;DllImport("OPMTest2010x64.arx", CallingConvention:=CallingConvention.Cdecl, EntryPoint:="IsOPMChangeProps")&amp;gt; _
    Private Shared Function IsOPMChangeProps2010x64() As Integer
    End Function
    Public Shared Sub Start_monitoring_pallette()
        Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbLf &amp;amp; IsOPMChangeProps2010x64.ToString)
    End Sub
End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 15:07:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447015#M55738</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-07T15:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447291#M55739</link>
      <description>&lt;P&gt;Hi, Janet!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;You do not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;understand me&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;The function&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that I wrote&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;allows you to check&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;whether the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;entity&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;has changed&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Properties Palette (OPM)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;or not.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;But it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is not an event&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and does not allow&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;him&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to subscribe to the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;event.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;If&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;are not interested in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;how the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;entity&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;has been changed&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;- you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do not need&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this function&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;In order to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;make the event&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;ModelessOperationWillStart / ModelessOperationEnd&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;need to write &lt;/SPAN&gt;&lt;SPAN&gt;.NET wrapper&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; M&lt;SPAN class="hps"&gt;ixed C++,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I'm not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an expert. Sorry!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 17:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447291#M55739</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-07T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447337#M55740</link>
      <description>&lt;P&gt;Anyways. At least you look into it. That is nice of you.&lt;/P&gt;&lt;P&gt;Maybe somebody else&amp;nbsp; from autodesk help us. Now is the time we see lack of Tony Tanzilla in this forum .&lt;/P&gt;&lt;P&gt;So many unanswered question.&lt;/P&gt;&lt;P&gt;Cheers Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 18:19:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447337#M55740</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-07T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447691#M55742</link>
      <description>&lt;P&gt;Hi Janet!&lt;/P&gt;
&lt;P&gt;I've found solution without mixed C++. Try it. I've attached two solution. First - create arx-files (OPMTest2010x32.arx and&amp;nbsp;OPMTest2010x64.arx). Second - create .NET-assembly which use arx-files (from first solution) in order to set own&amp;nbsp;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;event handlers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;using System;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.EditorInput;

// This line is not mandatory, but improves loading performances
[assembly: CommandClass(typeof(COPMEvent.MyCommands))]

namespace COPMEvent
{

    // This class is instantiated by AutoCAD for each document when
    // a command is called by the user the first time in the context
    // of a given document. In other words, non static data in this class
    // is implicitly per-document!
    public class MyCommands
    {
        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
        public delegate void OPMChangeEvent();

        [DllImport("OPMTest2010x32.arx", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SetOPMChangeStart")]
        private static extern void SetOPMChangeStart32(OPMChangeEvent callBackFunc);
        [DllImport("OPMTest2010x64.arx", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SetOPMChangeStart")]
        private static extern void SetOPMChangeStart64(OPMChangeEvent callBackFunc);
        [DllImport("OPMTest2010x32.arx", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SetOPMChangeStop")]
        private static extern void SetOPMChangeStop32(OPMChangeEvent callBackFunc);
        [DllImport("OPMTest2010x64.arx", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SetOPMChangeStop")]
        private static extern void SetOPMChangeStop64(OPMChangeEvent callBackFunc);

        private static void SetOPMChangeStart(OPMChangeEvent callBackFunc)
        {
            if (IntPtr.Size == 4) SetOPMChangeStart32(callBackFunc);
            else SetOPMChangeStart64(callBackFunc);
        }
        private static void SetOPMChangeStop(OPMChangeEvent callBackFunc)
        {
            if (IntPtr.Size == 4) SetOPMChangeStop32(callBackFunc);
            else SetOPMChangeStop64(callBackFunc);
        }

        private void OPMChangeEventStart()
        {
            // For testing only
            Application.ShowAlertDialog("OPMEventStart - Begin Editing");
        }
        private void OPMChangeEventStop()
        {
            // For testing only
            Application.ShowAlertDialog("OPMEventStop - Stop Editing");
        }

        private static OPMChangeEvent callBackFuncStart = null;
        private static OPMChangeEvent callBackFuncStop = null;
        // Modal Command with localized name

        
        [CommandMethod("SetOPMEvent")]
        public void SetOPMEvent() // This method can have any name
        {
            callBackFuncStart = new OPMChangeEvent(OPMChangeEventStart);
            callBackFuncStop  = new OPMChangeEvent(OPMChangeEventStop);
            SetOPMChangeStart(callBackFuncStart); SetOPMChangeStop(callBackFuncStop);
        }

        [CommandMethod("ResetOPMEvent")]
        public void ResetOPMEvent() // This method can have any name
        {
            callBackFuncStart = null;
            callBackFuncStop = null;
            SetOPMChangeStart(callBackFuncStart); SetOPMChangeStop(callBackFuncStop);
        }


    }

}
&lt;/PRE&gt;
&lt;P&gt;Select any entity and try change it with Properties Palette.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 22:23:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3447691#M55742</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-07T22:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448511#M55743</link>
      <description>&lt;P&gt;Hi Alex.&lt;/P&gt;&lt;P&gt;I really don't know how to make it up to you , for all your consideration. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to convert your code to vb. ( using those online translators.&lt;/P&gt;&lt;P&gt;the only part I&amp;nbsp; couldn't translate is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    [CommandMethod("SetOPMEvent")]
        public void SetOPMEvent() // This method can have any name
        {
            callBackFuncStart = new OPMChangeEvent(OPMChangeEventStart);
            callBackFuncStop  = new OPMChangeEvent(OPMChangeEventStop);
            SetOPMChangeStart(callBackFuncStart); SetOPMChangeStop(callBackFuncStop);
        }

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am pretty sure you can handle vb if you know C# and c++&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just know vb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again Alex.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 13:56:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448511#M55743</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-08T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448561#M55744</link>
      <description>&lt;P&gt;With help of &lt;A href="http://www.developerfusion.com/tools/convert/csharp-to-vb/" target="_blank"&gt;http://www.developerfusion.com/tools/convert/csharp-to-vb/&lt;/A&gt; you can get the same as I:&lt;/P&gt;
&lt;PRE&gt;Imports&amp;nbsp;System.Runtime.InteropServices
Imports&amp;nbsp;Autodesk.AutoCAD.Runtime
Imports&amp;nbsp;Autodesk.AutoCAD.ApplicationServices
Imports&amp;nbsp;Autodesk.AutoCAD.DatabaseServices
Imports&amp;nbsp;Autodesk.AutoCAD.Geometry
Imports&amp;nbsp;Autodesk.AutoCAD.EditorInput
 
'&amp;nbsp;This&amp;nbsp;line&amp;nbsp;is&amp;nbsp;not&amp;nbsp;mandatory,&amp;nbsp;but&amp;nbsp;improves&amp;nbsp;loading&amp;nbsp;performances
&amp;lt;Assembly:&amp;nbsp;CommandClass(GetType(COPMEvent.MyCommands))&amp;gt;&amp;nbsp;
 
Namespace&amp;nbsp;COPMEvent
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;This&amp;nbsp;class&amp;nbsp;is&amp;nbsp;instantiated&amp;nbsp;by&amp;nbsp;AutoCAD&amp;nbsp;for&amp;nbsp;each&amp;nbsp;document&amp;nbsp;when
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;a&amp;nbsp;command&amp;nbsp;is&amp;nbsp;called&amp;nbsp;by&amp;nbsp;the&amp;nbsp;user&amp;nbsp;the&amp;nbsp;first&amp;nbsp;time&amp;nbsp;in&amp;nbsp;the&amp;nbsp;context
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;of&amp;nbsp;a&amp;nbsp;given&amp;nbsp;document.&amp;nbsp;In&amp;nbsp;other&amp;nbsp;words,&amp;nbsp;non&amp;nbsp;static&amp;nbsp;data&amp;nbsp;in&amp;nbsp;this&amp;nbsp;class
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;is&amp;nbsp;implicitly&amp;nbsp;per-document!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Public&amp;nbsp;Class&amp;nbsp;MyCommands
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;UnmanagedFunctionPointer(CallingConvention.Cdecl)&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Public&amp;nbsp;Delegate&amp;nbsp;Sub&amp;nbsp;OPMChangeEvent()
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DllImport("OPMTest2010x32.arx",&amp;nbsp;CallingConvention:=CallingConvention.Cdecl,&amp;nbsp;EntryPoint:="SetOPMChangeStart")&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;Sub&amp;nbsp;SetOPMChangeStart32(callBackFunc&amp;nbsp;As&amp;nbsp;OPMChangeEvent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DllImport("OPMTest2010x64.arx",&amp;nbsp;CallingConvention:=CallingConvention.Cdecl,&amp;nbsp;EntryPoint:="SetOPMChangeStart")&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;Sub&amp;nbsp;SetOPMChangeStart64(callBackFunc&amp;nbsp;As&amp;nbsp;OPMChangeEvent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DllImport("OPMTest2010x32.arx",&amp;nbsp;CallingConvention:=CallingConvention.Cdecl,&amp;nbsp;EntryPoint:="SetOPMChangeStop")&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;Sub&amp;nbsp;SetOPMChangeStop32(callBackFunc&amp;nbsp;As&amp;nbsp;OPMChangeEvent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DllImport("OPMTest2010x64.arx",&amp;nbsp;CallingConvention:=CallingConvention.Cdecl,&amp;nbsp;EntryPoint:="SetOPMChangeStop")&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;Sub&amp;nbsp;SetOPMChangeStop64(callBackFunc&amp;nbsp;As&amp;nbsp;OPMChangeEvent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;Sub&amp;nbsp;SetOPMChangeStart(callBackFunc&amp;nbsp;As&amp;nbsp;OPMChangeEvent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If&amp;nbsp;IntPtr.Size&amp;nbsp;=&amp;nbsp;4&amp;nbsp;Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStart32(callBackFunc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStart64(callBackFunc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;Sub&amp;nbsp;SetOPMChangeStop(callBackFunc&amp;nbsp;As&amp;nbsp;OPMChangeEvent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If&amp;nbsp;IntPtr.Size&amp;nbsp;=&amp;nbsp;4&amp;nbsp;Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStop32(callBackFunc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStop64(callBackFunc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Sub&amp;nbsp;OPMChangeEventStart()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;For&amp;nbsp;testing&amp;nbsp;only
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Application.ShowAlertDialog("OPMEventStart&amp;nbsp;-&amp;nbsp;Begin&amp;nbsp;Editing")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Sub&amp;nbsp;OPMChangeEventStop()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;For&amp;nbsp;testing&amp;nbsp;only
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Application.ShowAlertDialog("OPMEventStop&amp;nbsp;-&amp;nbsp;Stop&amp;nbsp;Editing")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;callBackFuncStart&amp;nbsp;As&amp;nbsp;OPMChangeEvent&amp;nbsp;=&amp;nbsp;Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&amp;nbsp;Shared&amp;nbsp;callBackFuncStop&amp;nbsp;As&amp;nbsp;OPMChangeEvent&amp;nbsp;=&amp;nbsp;Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;Modal&amp;nbsp;Command&amp;nbsp;with&amp;nbsp;localized&amp;nbsp;name
 
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;CommandMethod("SetOPMEvent")&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Public&amp;nbsp;Sub&amp;nbsp;SetOPMEvent()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;This&amp;nbsp;method&amp;nbsp;can&amp;nbsp;have&amp;nbsp;any&amp;nbsp;name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;callBackFuncStart&amp;nbsp;=&amp;nbsp;New&amp;nbsp;OPMChangeEvent(AddressOf&amp;nbsp;OPMChangeEventStart)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;callBackFuncStop&amp;nbsp;=&amp;nbsp;New&amp;nbsp;OPMChangeEvent(AddressOf&amp;nbsp;OPMChangeEventStop)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStart(callBackFuncStart)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStop(callBackFuncStop)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;CommandMethod("ResetOPMEvent")&amp;gt;&amp;nbsp;_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Public&amp;nbsp;Sub&amp;nbsp;ResetOPMEvent()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;This&amp;nbsp;method&amp;nbsp;can&amp;nbsp;have&amp;nbsp;any&amp;nbsp;name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;callBackFuncStart&amp;nbsp;=&amp;nbsp;Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;callBackFuncStop&amp;nbsp;=&amp;nbsp;Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStart(callBackFuncStart)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetOPMChangeStop(callBackFuncStop)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Sub
 
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&amp;nbsp;Class
 
End&amp;nbsp;Namespace&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2012 14:23:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448561#M55744</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-08T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448677#M55745</link>
      <description>&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;you are incredible. Now in vb editor I am error free.&lt;/P&gt;&lt;P&gt;I ran the command and right after I hit enter&lt;/P&gt;&lt;P&gt;I get this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;************** Exception Text **************&lt;BR /&gt;System.EntryPointNotFoundException: Unable to find an entry point named 'SetOPMChangeStart' in DLL 'OPMTest2010x64.arx'.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at VBOPMEvent.COPMEvent.MyCommands.SetOPMChangeStart64(OPMChangeEvent callBackFunc)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at VBOPMEvent.COPMEvent.MyCommands.SetOPMEvent() in C:\VBOPMEvent\myCommands.vb:line 69&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.Runtime.PerDocumentCommandClass.Invoke(MethodInfo mi, Boolean bLispFunction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and Alex line 69 is this line&lt;/P&gt;&lt;P&gt;SetOPMChangeStop(callBackFuncStop)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my system is 2012 64 bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 14:54:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448677#M55745</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-08T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448995#M55746</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;Are you sure you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;used the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;correct version&lt;/SPAN&gt; of &lt;SPAN class="hps"&gt;OPMTest2010x64.arx?&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;I just&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;rechecked&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with AutoCAD&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;2012&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;x64 -&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;no errors&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;The correct version&lt;/SPAN&gt;&lt;/SPAN&gt; is: &lt;A href="http://forums.autodesk.com/autodesk/attachments/autodesk/152/28761/2/OPMTest.zip" target="_blank"&gt;http://forums.autodesk.com/autodesk/attachments/autodesk/152/28761/2/OPMTest.zip&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 16:57:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3448995#M55746</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-08T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find ModelessOperationWill Start Event in Dot net</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3449057#M55747</link>
      <description>&lt;P&gt;Don't kill me&amp;nbsp; Alex,&lt;/P&gt;&lt;P&gt;you were right.&lt;/P&gt;&lt;P&gt;Sorry . I am a girl .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are really my hero.&lt;/P&gt;&lt;P&gt;I think autodesk should be proud of you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works like a charm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 17:27:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-modelessoperationwill-start-event-in-dot-net/m-p/3449057#M55747</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-05-08T17:27:21Z</dc:date>
    </item>
  </channel>
</rss>

