<?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: Create two input windows in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9742218#M10822</link>
    <description>&lt;P&gt;There is no button to mark as solved.&lt;/P&gt;&lt;P&gt;I tried on Chrome and Edge.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 12:52:31 GMT</pubDate>
    <dc:creator>brad.bylls</dc:creator>
    <dc:date>2020-09-11T12:52:31Z</dc:date>
    <item>
      <title>Create two input windows</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9731410#M10819</link>
      <description>&lt;P&gt;I am try to create two input windows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first is a drop-down input.&lt;/P&gt;&lt;P&gt;The user makes a selection and the window closes and another input window opens with information populated with information based on the user's input from the first window.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 18:08:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9731410#M10819</guid>
      <dc:creator>brad.bylls</dc:creator>
      <dc:date>2020-09-05T18:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create two input windows</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9731469#M10820</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3623640"&gt;@brad.bylls&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create two &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-d34065c0-b5b8-46f9-bd4c-36adfcdfda83" target="_blank" rel="noopener"&gt;CommandDefinition&lt;/A&gt;s, one to get the user selection and one for showing the information.&lt;BR /&gt;&lt;BR /&gt;On execution of your first command you can call the execute method of your second CommandDefinition using &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-7ffc950f-92e8-47bc-8228-54b67ae8e2c8" target="_blank" rel="noopener"&gt;CommandDefinition.execute&lt;/A&gt; method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you prefer to not allow the user to run your second command directly, you simply should not add it to any toolbar or menu. Just create a CommandDefinition using&amp;nbsp;&lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-04eb6198-72cd-4430-a6a4-8d68a1105b8e" target="_blank" rel="noopener"&gt;CommandDefinitions.addButtonDefinition&lt;/A&gt; method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the simplest way to pass information between the two commands is creating add-ins instead of scripts. Add-ins stay active, so you can share the information between its commands.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also usign&amp;nbsp;&lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-4d45d6f4-ce33-4c12-bf28-f5cbbb52fc61" target="_blank" rel="noopener"&gt;UserInterface.commandDefinitions&lt;/A&gt; you can get the list of all commandDefinitions and get any commandDefinition using&amp;nbsp;&lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-64f5f8cd-4956-423c-aa83-47bbe54941ae" target="_blank" rel="noopener"&gt;CommandDefinitions.itemById&lt;/A&gt; method.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 19:37:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9731469#M10820</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2020-09-05T19:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create two input windows</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9731540#M10821</link>
      <description>&lt;P&gt;I also suggest you think about using one window instead of two. Perhaps it will be feasible in your case. In many cases it will be enough to have just one window and control what is visible in it using &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8f013392-6f24-40bb-978a-fdb90402f4fd" target="_blank" rel="noopener"&gt;isVisible&lt;/A&gt; property of different CommandInput objects (especially &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-44d01a54-8fbc-46f9-a745-b419d93a7e42" target="_blank" rel="noopener"&gt;GroupCommandInput&lt;/A&gt; and &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-a5f473ea-6eaf-4dfc-a001-4c35f233b851" target="_blank" rel="noopener"&gt;TabCommandInput&lt;/A&gt; objects)&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 21:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9731540#M10821</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2020-09-05T21:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create two input windows</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9742218#M10822</link>
      <description>&lt;P&gt;There is no button to mark as solved.&lt;/P&gt;&lt;P&gt;I tried on Chrome and Edge.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 12:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-two-input-windows/m-p/9742218#M10822</guid>
      <dc:creator>brad.bylls</dc:creator>
      <dc:date>2020-09-11T12:52:31Z</dc:date>
    </item>
  </channel>
</rss>

