<?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 : TEXTEDIT Commandended handler not working in 2017 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6862882#M32830</link>
    <description>&lt;P&gt;It works for me when I use &lt;A href="http://otb.manusoft.com/2009/09/arxdbg-utility.htm" target="_self"&gt;ArxDbg &lt;/A&gt;(in the context menu, &lt;STRONG&gt;Reactors&lt;/STRONG&gt;, &lt;STRONG&gt;System&lt;/STRONG&gt;, &lt;STRONG&gt;Editor Reactor&lt;/STRONG&gt;, &lt;STRONG&gt;On&lt;/STRONG&gt;).&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 14:40:43 GMT</pubDate>
    <dc:creator>FRFR1426</dc:creator>
    <dc:date>2017-02-08T14:40:43Z</dc:date>
    <item>
      <title>TEXTEDIT Commandended handler not working in 2017</title>
      <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6862422#M32829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason the commandended event handler is not reacting to the TEXTEDIT command in&amp;nbsp;AutoCAD 2017 (and VS2015).&lt;/P&gt;&lt;P&gt;Other events react but not TEXTEDIT for some reason.&amp;nbsp;And it&amp;nbsp;reacts on previous versions of Autocad just not 2017.&lt;/P&gt;&lt;P&gt;Has there been a change in 2017 where I need to use a different reactor for this event?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 12:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6862422#M32829</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2017-02-08T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re : TEXTEDIT Commandended handler not working in 2017</title>
      <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6862882#M32830</link>
      <description>&lt;P&gt;It works for me when I use &lt;A href="http://otb.manusoft.com/2009/09/arxdbg-utility.htm" target="_self"&gt;ArxDbg &lt;/A&gt;(in the context menu, &lt;STRONG&gt;Reactors&lt;/STRONG&gt;, &lt;STRONG&gt;System&lt;/STRONG&gt;, &lt;STRONG&gt;Editor Reactor&lt;/STRONG&gt;, &lt;STRONG&gt;On&lt;/STRONG&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:40:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6862882#M32830</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2017-02-08T14:40:43Z</dc:date>
    </item>
    <item>
      <title>Re : TEXTEDIT Commandended handler not working in 2017</title>
      <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6863102#M32831</link>
      <description>&lt;P&gt;I didn't know about this feature of ArxDbg before. Thanks for showing me that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does react to the event but not the Command Ended event for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I do see:&lt;/P&gt;&lt;P&gt;[ED REACTOR] &amp;nbsp; &amp;nbsp;: [Command Will Start: TEXTEDIT]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you get a command ended event?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:52:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6863102#M32831</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2017-02-08T15:52:36Z</dc:date>
    </item>
    <item>
      <title>Re : TEXTEDIT Commandended handler not working in 2017</title>
      <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6863161#M32832</link>
      <description>&lt;P&gt;Yes, I've a command ended event. Please note that if the command is canceled, the command ended event will be replaced by a command canceled event.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6863161#M32832</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2017-02-08T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re : TEXTEDIT Commandended handler not working in 2017</title>
      <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6863224#M32833</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a simple try and it works for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        private bool handled;

        [CommandMethod("CMDENDEDTOGGLE")]
        public void CmdEndedToggle()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            if (handled)
                doc.CommandEnded -= Doc_CommandEnded;
            else
                doc.CommandEnded += Doc_CommandEnded; 
            handled = !handled;
            doc.Editor.WriteMessage($"\nCommandEnded event handled = {handled}");
        }

        private void Doc_CommandEnded(object sender, CommandEventArgs e)
        {
            if (e.GlobalCommandName == "TEXTEDIT")
            AcAp.ShowAlertDialog("TEXTEDIT command ended.");
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="f9020665-de30-4b5d-8791-a735546f4f52" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f9020665-de30-4b5d-8791-a735546f4f52" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;" width="640" height="680" frameborder="0"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2017 16:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6863224#M32833</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-02-08T16:17:17Z</dc:date>
    </item>
    <item>
      <title>Re : TEXTEDIT Commandended handler not working in 2017</title>
      <link>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6865737#M32834</link>
      <description>&lt;P&gt;I understand what's going on now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the TEXTEDIT mode set to multiple instead of single.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TEXTEDIT command allows you to edit multiple pieces of text one after the other.&lt;/P&gt;&lt;P&gt;You can press ESCAPE when you're done editing. Or you can press ENTER to complete the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ESCAPE triggers the CommandCanceled event rather than registering that a command has been completed.&lt;/P&gt;&lt;P&gt;ENTER does trigger CommandEnded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this was the case in previous AutoCAD and&amp;nbsp;I just didn't realize it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll trap the event in both&amp;nbsp;Cancelled and Ended. Or get the program to change the edit mode to single.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou for&amp;nbsp;the hints!&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;</description>
      <pubDate>Thu, 09 Feb 2017 12:50:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/textedit-commandended-handler-not-working-in-2017/m-p/6865737#M32834</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2017-02-09T12:50:02Z</dc:date>
    </item>
  </channel>
</rss>

