<?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 Opening multiple prompts simultaneously in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/opening-multiple-prompts-simultaneously/m-p/10436633#M15925</link>
    <description>&lt;P&gt;Hi all - I'm looking for a way to prompt a user for an arbitrarily long sequence of selection sets, only stopping when they type in a particular command. This seems like it would require both a StringResult and a SelectionResult object to be open at the same time, which I'm not sure is possible. Any advice would be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 19:00:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-01T19:00:02Z</dc:date>
    <item>
      <title>Opening multiple prompts simultaneously</title>
      <link>https://forums.autodesk.com/t5/net-forum/opening-multiple-prompts-simultaneously/m-p/10436633#M15925</link>
      <description>&lt;P&gt;Hi all - I'm looking for a way to prompt a user for an arbitrarily long sequence of selection sets, only stopping when they type in a particular command. This seems like it would require both a StringResult and a SelectionResult object to be open at the same time, which I'm not sure is possible. Any advice would be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/opening-multiple-prompts-simultaneously/m-p/10436633#M15925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-01T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Opening multiple prompts simultaneously</title>
      <link>https://forums.autodesk.com/t5/net-forum/opening-multiple-prompts-simultaneously/m-p/10436786#M15926</link>
      <description>&lt;P&gt;No sure I understand you correctly, but here it goes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You place the call to EditorGetSelection()&amp;nbsp; in a Loop, with each round selecting is done, you can as user to continue or not, something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var selectedEnts=new List&amp;lt;ObjectId&amp;gt;();&lt;/P&gt;
&lt;P&gt;while(true)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; var opt=new PromptSelectionOption(...);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; var filter = new SelectionFilter(...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; var res = ed.GetSelection(filter, opt);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if (res.Status == PromptStatus.OK)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; selectedEnts.AddRange(res.Value.GetOjectIds());&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var kOpt=new PromptKeywordOption(...);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kOpt.Keywords.Add(...);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var kRes=ed.HetKeyword(kOpt);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (kRes.Status == PromptStatus.OK)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'' based on user's keyword input, decide to do another round selection or not&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of getting user input after each round selection with Editor.GetKeyword(), you probably can use PromptSelectionOption.Keyword and handle its KeywordInput/UnknownInput events to decide whether you want to do another round selection or not.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 20:27:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/opening-multiple-prompts-simultaneously/m-p/10436786#M15926</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-07-01T20:27:00Z</dc:date>
    </item>
  </channel>
</rss>

