<?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: How to close/destroy a command dialog in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12790411#M1386</link>
    <description>&lt;P&gt;Thanks for pointing me in the right direction! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;For future readers, this works as expected (terminating the active command window and triggering the command destroy event):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ui.terminateActiveCommand()&lt;/LI-CODE&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>Wed, 22 May 2024 19:12:15 GMT</pubDate>
    <dc:creator>fatalbullethit</dc:creator>
    <dc:date>2024-05-22T19:12:15Z</dc:date>
    <item>
      <title>How to close/destroy a command dialog</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12787714#M1384</link>
      <description>&lt;P&gt;I would like to close a command dialog under certain conditions.&lt;/P&gt;&lt;P&gt;I know of a way to start a command dialog...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ui.commandDefinitions.itemById(CMD_ID).execute()&lt;/LI-CODE&gt;&lt;P&gt;... but I can't find a way to close it.&lt;/P&gt;&lt;P&gt;I'm looking for something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ui.commandDefinitions.itemById(CMD_ID).destroy()&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 May 2024 15:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12787714#M1384</guid>
      <dc:creator>fatalbullethit</dc:creator>
      <dc:date>2024-05-21T15:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to close/destroy a command dialog</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12788447#M1385</link>
      <description>&lt;P&gt;I lived under the impression there was access to adsk.terminate() that would destroy the dialog but I wasn't able to find it.&lt;BR /&gt;&lt;BR /&gt;Instead what I found was&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/fusion-api-and-scripts/aborting-a-script-execution/td-p/10911740" target="_blank" rel="noopener"&gt;this discussion&lt;/A&gt;&amp;nbsp;that clarified it at least for Python.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 20:33:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12788447#M1385</guid>
      <dc:creator>j4n.vokurka</dc:creator>
      <dc:date>2024-05-21T20:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to close/destroy a command dialog</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12790411#M1386</link>
      <description>&lt;P&gt;Thanks for pointing me in the right direction! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;For future readers, this works as expected (terminating the active command window and triggering the command destroy event):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ui.terminateActiveCommand()&lt;/LI-CODE&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>Wed, 22 May 2024 19:12:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-close-destroy-a-command-dialog/m-p/12790411#M1386</guid>
      <dc:creator>fatalbullethit</dc:creator>
      <dc:date>2024-05-22T19:12:15Z</dc:date>
    </item>
  </channel>
</rss>

