<?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: CommandEnded Event handling with OVERKILL in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765871#M51320</link>
    <description>&lt;P&gt;Hi, Tony!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1052889"&gt;@DiningPhilosopher&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm going to respectfully disagree with Alex's advice to do what that article he referred to shows.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;Then the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;correct&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;answer would be to&lt;/SPAN&gt; totally &lt;SPAN class="hps"&gt;rewrite the code&lt;/SPAN&gt; -&lt;SPAN class="hps"&gt;OVERKILL&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;command&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;by means of AutoCAD &lt;/SPAN&gt;&lt;SPAN&gt;.NET API&lt;/SPAN&gt;&lt;/SPAN&gt; &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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2013 12:23:23 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2013-01-31T12:23:23Z</dc:date>
    <item>
      <title>CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765770#M51317</link>
      <description>&lt;PRE&gt;public void A()
{
   Document doc = Application.DocumentManager.MdiActiveDocument;
   doc.SendStringToExecute("-overkill\np\n\n\n", true, false, false);
   doc.CommandEnded += new CommandEventHandler(doc_CommandEnded);
}

public void doc_CommandEnded(object sender, CommandEventArgs e)
{
   Document doc = sender as Document;
   if (!doc.Editor.IsQuiescent) return;

   DoSomeWork();
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As you can see above, I am trying to call DoSomeWork() after "-overkill" command finishes.&lt;/P&gt;&lt;P&gt;It looks like "-overkill" command is consits of a number of other commands because CommandEnded event gets triggered many times.&lt;/P&gt;&lt;P&gt;So I had to check if Editor is quiescent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem is CommandEnded event does not get tirggered when Editor.IsQuiescent.&lt;/P&gt;&lt;P&gt;So DoSomeWork() never gets called.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also haved tried EnteringQuiescentState event instead of CommandEnded event, but it did not help.&lt;/P&gt;&lt;P&gt;EnteringQuiescentState event also gets called many times before "-overkill" command ends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I solve this problem?&lt;/P&gt;&lt;P&gt;Any idea??&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 08:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765770#M51317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-31T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765827#M51318</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;How could I solve this problem?&lt;/P&gt;
&lt;P&gt;Any idea??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;H3 class="entry-header"&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/09/how-to-run-autocad-interactive-commands-and-run-code-after-command-completes.html" target="_self"&gt;How to run AutoCAD interactive commands and run code after command completes&lt;/A&gt;&lt;/H3&gt;
&lt;H3 class="entry-header"&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/04/synchronously-send-and-wait-for-commands-in-autocad-using-c-net.html" target="_self"&gt;Synchronously Send (and wait for) commands in AutoCAD using C# .NET&lt;/A&gt;&lt;/H3&gt;</description>
      <pubDate>Thu, 31 Jan 2013 09:56:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765827#M51318</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-01-31T09:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765867#M51319</link>
      <description>&lt;P&gt;I'm going to respectfully disagree with Alex's advice to do what that article he referred to shows. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the absolutely worse possible way to solve a problem like the one you face.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to best solve it depends on if you are trying to execute the command from a modal command handler or from the Application's execution context. In either case, you can use the Editor's &lt;STRONG&gt;RunCommand()&lt;/STRONG&gt; method to execute commands synchronously, so that you can easily have control after they've finished.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RunCommand() is &lt;EM&gt;&lt;STRONG&gt;undocumented&lt;/STRONG&gt;&lt;/EM&gt; and must be invoked via reflection, but that's not hard to do, and you should be able to rely on it continuing to be there, as along as acedCmd() and acedCommand() continue to exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See &lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=43113.msg483306#msg483306"&gt;this swamp post&lt;/A&gt;&amp;nbsp;for more info on using RunCommand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you are trying to execute commands from the application context (e.g., from an event handler for a control on a Palette, modeless dialog, or the ribbon), you can define your own modal command that you can start using SendStringToExecute(), and that modal command can then use RunCommand() to execute commands syncronously, and allow you to easily get control after the commands have finished.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765867#M51319</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-01-31T12:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765871#M51320</link>
      <description>&lt;P&gt;Hi, Tony!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1052889"&gt;@DiningPhilosopher&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm going to respectfully disagree with Alex's advice to do what that article he referred to shows.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;Then the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;correct&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;answer would be to&lt;/SPAN&gt; totally &lt;SPAN class="hps"&gt;rewrite the code&lt;/SPAN&gt; -&lt;SPAN class="hps"&gt;OVERKILL&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;command&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;by means of AutoCAD &lt;/SPAN&gt;&lt;SPAN&gt;.NET API&lt;/SPAN&gt;&lt;/SPAN&gt; &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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:23:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3765871#M51320</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-01-31T12:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3766629#M51321</link>
      <description>&lt;P&gt;Sadly, this approach still does not wait for the "OVERKILL" to end... =(&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 08:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3766629#M51321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-01T08:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3766643#M51322</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Sadly, this approach still does not wait for the "OVERKILL" to end... =(&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;Which of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;me and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Tony&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;approaches&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do not work?&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;And&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what code&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do you use?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 09:28:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3766643#M51322</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-01T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3766957#M51324</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Sadly, this approach still does not wait for the "OVERKILL" to end... =(&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not sure what approach you're referring to, but the one that I wrote about works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the LISP (command) function call to run OVERKILL using the current options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "._-OVERKILL" "ALL" "" "")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Doing the same using the Command() extension method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.ApplicationServices;

namespace Namespace1
{
   public static class SyncOverkillExample
   {
      [CommandMethod( "MYOVERKILL" )]
      public static void MyOverkill()
      {
         Document doc = Application.DocumentManager.MdiActiveDocument;
         doc.Editor.Command( "._-OVERKILL", "_ALL", "", "" );

         doc.Editor.WriteMessage( "\nOverkill finished," );
         doc.Editor.WriteMessage( "\ndoing more stuff now...8-)" );

         // TODO: Here you can do what must be done after
         //       the OVERKILL command is finished.
      }
   }
}

namespace Autodesk.AutoCAD.EditorInput
{
   public static class MyEditorExtensions
   {
      static MethodInfo runCommand = typeof( Editor ).GetMethod(
         "RunCommand", BindingFlags.Instance 
            | BindingFlags.NonPublic | BindingFlags.Public );

      public static PromptStatus Command( this Editor ed, params object[] args )
      {
         if( Application.DocumentManager.IsApplicationContext )
            throw new InvalidOperationException( 
               "Invalid execution context for Command()" );
         if( ed.Document != Application.DocumentManager.MdiActiveDocument )
            throw new InvalidOperationException( "Document is not active" );
         return (PromptStatus) runCommand.Invoke( ed, new object[] { args } );
      }
   }
}&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;</description>
      <pubDate>Fri, 01 Feb 2013 17:19:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3766957#M51324</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-01T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3767029#M51326</link>
      <description>&lt;P&gt;hI&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi, Tony!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1052889"&gt;@DiningPhilosopher&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I'm going to respectfully disagree with Alex's advice to do what that article he referred to shows.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Then the&lt;/SPAN&gt; &lt;SPAN&gt;correct&lt;/SPAN&gt; &lt;SPAN&gt;answer would be to&lt;/SPAN&gt; totally &lt;SPAN&gt;rewrite the code&lt;/SPAN&gt; -&lt;SPAN&gt;OVERKILL&lt;/SPAN&gt; &lt;SPAN&gt;command&lt;/SPAN&gt; &lt;SPAN&gt;by means of AutoCAD &lt;/SPAN&gt;&lt;SPAN&gt;.NET API&lt;/SPAN&gt;&lt;/SPAN&gt; &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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, I don't know if there's a correct o&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;r incorrect answer, but the best solution IMO, is the one shown by the above example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3767029#M51326</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-01T18:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3767286#M51327</link>
      <description>&lt;P&gt;Hi, Tony!&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;A small&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;clarification&lt;/SPAN&gt;&lt;/SPAN&gt;. The first version of AutoCAD in which ._-OVERKILL can be invoke with (command ...) is AutoCAD 2012. Previous versions of AutoCAD has lisp-defined command -OVERKILL and can not been called with (command ...) Only with COM-method SendCommand or .NET method SendStringToExecute. &lt;/P&gt;
&lt;P&gt;AutoCAD 2011:&lt;/P&gt;
&lt;PRE&gt;Command: (command "._-OVERKILL" "ALL" "" "") ._-OVERKILL Unknown command 
"-OVERKILL".  Press F1 for help.
Command: ALL Unknown command "ALL".  Press F1 for help.

Command: ._-OVERKILL
Initializing...
Select objects: _ALL
0 found
Select objects:&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2013 10:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3767286#M51327</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-02T10:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3767386#M51328</link>
      <description>&lt;P&gt;Hi Alex, and thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't notice the OP mention what release(s) he needs to work with.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2013 17:52:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3767386#M51328</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-02T17:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3768578#M51329</link>
      <description>&lt;P&gt;HI, Alex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried one that you suggested with the following code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;private void SelectEntitiesOnLayer(Document doc, string layerName)
{
    Editor ed = doc.Editor;

    // Build a filter list so that only entities
    // on the specified layer are selected
    //TypedValue[] tvs = new TypedValue[1] { new TypedValue((int)DxfCode.LayerName, layerName) };
    TypedValue[] tvs = new TypedValue[2] { new TypedValue((int)DxfCode.LayerName, layerName), new TypedValue((int)DxfCode.LayoutName, "Model") };
    SelectionFilter sf = new SelectionFilter(tvs);
    PromptSelectionResult psr = ed.SelectAll(sf);
}

[CommandMethod("MyOverkill")]
public void MyOverkill()
{
    Document doc = Application.DocumentManager.MdiActiveDocument;
    SelectEntitiesOnLayer(doc, LayerName.TIN);
    doc.SendStringToExecute("-overkill\np\n\n\n", true, false, false);
}

[CommandMethod("MoreWork")]
public void MoreWork()
{
    DoSomeWork();
}

[CommandMethod("Test")]
public void Test()
{
    Document doc = Application.DocumentManager.MdiActiveDocument;
    string cmd = @"(command ""MyOverkill"")(while(&amp;gt;(getvar ""cmdactive"")0)(command pause))(command ""MoreWork"") ";
    doc.SendStringToExecute(cmd, true, false, true);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, I am expecting DoSomeWork() gets called after "MyOverkill"&lt;/P&gt;&lt;P&gt;Let's say DoSomeWork() is nothing more than poping up the alert.&lt;/P&gt;&lt;P&gt;If I call "Test" command the aleart box pops up immediately, then "-overkill" gets called after.&lt;/P&gt;&lt;P&gt;Which is opposite to what I expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I do something wrong? =(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 05:45:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3768578#M51329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-04T05:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3768606#M51330</link>
      <description>&lt;P&gt;What about this code:&lt;/P&gt;
&lt;PRE&gt;[CommandMethod("Test")]
public void Test()
{
    Document doc = Application.DocumentManager.MdiActiveDocument;
    string cmd;
    cmd = "-overkill\n_p\n\n\n"; 
    doc.SendStringToExecute(cmd, true, false, true);
    cmd = "(while(&amp;gt;(getvar \"cmdactive\")0)(command pause))\n";
    doc.SendStringToExecute(cmd, true, false, true);    
    cmd = "MoreWork\n";
    doc.SendStringToExecute(cmd, true, false, true);    
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 06:56:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3768606#M51330</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-04T06:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded Event handling with OVERKILL</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3768677#M51331</link>
      <description>&lt;P&gt;Thank you, Alex~!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Super awesome~!&lt;/P&gt;&lt;P&gt;Looks like this code is working~!! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 09:24:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-event-handling-with-overkill/m-p/3768677#M51331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-04T09:24:46Z</dc:date>
    </item>
  </channel>
</rss>

