<?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: GetSelection - keywords do not stop selection in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7270169#M30343</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;does the blog&amp;nbsp;&lt;A href="http://adndevblog.typepad.com/autocad/2013/12/how-to-exit-editorgetselection-on-keyword-selection.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2013/12/how-to-exit-editorgetselection-on-keyword-selection.html&lt;/A&gt; helps? Blog uses exception throwing to exit the keyword selection loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2017 04:34:49 GMT</pubDate>
    <dc:creator>Virupaksha_aithal</dc:creator>
    <dc:date>2017-08-02T04:34:49Z</dc:date>
    <item>
      <title>GetSelection - keywords do not stop selection</title>
      <link>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7269562#M30341</link>
      <description>&lt;P&gt;I read in several places how to implement keywords with ed.GetSelection, ad you simply hook to the KeywordInput event like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options.KeywordInput += delegate (object sender, SelectionTextInputEventArgs e) {
                    keyWord = e.Input;
                };&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thing is, that does not end the GetSelection method, it keeps asking you to select stuff.&lt;/P&gt;
&lt;P&gt;I want the keyword to end the selction process. Is there a simple way to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;btw, I am calling GetSelection like: ed.GetSelection(options, ssFilter);&lt;/P&gt;
&lt;P&gt;I don't think the filter changes things though.&lt;/P&gt;
&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:37:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7269562#M30341</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2017-08-01T20:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelection - keywords do not stop selection</title>
      <link>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7269584#M30342</link>
      <description>&lt;P&gt;I see now:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.theswamp.org/index.php?topic=45555.msg507161#msg507161" target="_blank"&gt;https://www.theswamp.org/index.php?topic=45555.msg507161#msg507161&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;keywords in GetSelection are not meant to act like regular keywords in other functions.&lt;/P&gt;
&lt;P&gt;They are meant to be used inside the command, to change its behavior.&lt;/P&gt;
&lt;P&gt;Kean had suggested doing a sendcommand or similar I think, to get out, but no one tried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, I wanted the user to select items, or open a settings dialog like:&lt;/P&gt;
&lt;P&gt;Select Objects or [Settings]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I can do that by catching an enter:&lt;/P&gt;
&lt;P&gt;Select Objects or Enter for Settings:&lt;/P&gt;
&lt;P&gt;That only works for one option though, so not great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An escape is different (result.value is cancel, not error) and kills the command so you don't get in a perpetual loop.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7269584#M30342</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2017-08-01T20:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelection - keywords do not stop selection</title>
      <link>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7270169#M30343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;does the blog&amp;nbsp;&lt;A href="http://adndevblog.typepad.com/autocad/2013/12/how-to-exit-editorgetselection-on-keyword-selection.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2013/12/how-to-exit-editorgetselection-on-keyword-selection.html&lt;/A&gt; helps? Blog uses exception throwing to exit the keyword selection loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 04:34:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getselection-keywords-do-not-stop-selection/m-p/7270169#M30343</guid>
      <dc:creator>Virupaksha_aithal</dc:creator>
      <dc:date>2017-08-02T04:34:49Z</dc:date>
    </item>
  </channel>
</rss>

