<?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 Pause a script in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12750968#M1462</link>
    <description>&lt;P&gt;I have a script with a dialog box.&lt;/P&gt;&lt;P&gt;If the user presses continue and all of the criteria is not met, I put up a message box that says so.&lt;/P&gt;&lt;P&gt;When the user presses ok the dialog disappears.&lt;/P&gt;&lt;P&gt;How do I let the use complete the dialog and then continue?&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 14:34:29 GMT</pubDate>
    <dc:creator>brad.bylls</dc:creator>
    <dc:date>2024-05-03T14:34:29Z</dc:date>
    <item>
      <title>Pause a script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12750968#M1462</link>
      <description>&lt;P&gt;I have a script with a dialog box.&lt;/P&gt;&lt;P&gt;If the user presses continue and all of the criteria is not met, I put up a message box that says so.&lt;/P&gt;&lt;P&gt;When the user presses ok the dialog disappears.&lt;/P&gt;&lt;P&gt;How do I let the use complete the dialog and then continue?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:34:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12750968#M1462</guid>
      <dc:creator>brad.bylls</dc:creator>
      <dc:date>2024-05-03T14:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pause a script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12752429#M1463</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;# Uses optional arguments.&lt;/SPAN&gt;&lt;BR /&gt;returnValue = userInterface_var.&lt;STRONG&gt;messageBox&lt;/STRONG&gt;(text, title, buttons, icon)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;MessageBoxButtonTypes Enumerator&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;YesNoCancelButtonType&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;The message box contains Yes, No, and Cancel buttons.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DialogResults Enumerator Description&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Defines the valid return types from a dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Defined in namespace "adsk::core" and the header file is &amp;lt;Core\CoreTypeDefs.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Methods&lt;/P&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DialogCancel&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;The dialog box return value is Cancel (usually sent from a button labeled Cancel).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DialogError&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;An unexpected error occurred.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DialogNo&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;The dialog box return value is No (usually sent from a button labeled No).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DialogOK&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;The dialog box return value is OK (usually sent from a button labeled OK).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DialogYes&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;The dialog box return value is Yes (usually sent from a buttons labeled Yes and Retry).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 04 May 2024 11:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12752429#M1463</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2024-05-04T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pause a script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12753137#M1464</link>
      <description>&lt;P&gt;The way Fusion commands are designed, the OK button should only be enabled when the current input meets the required criteria. That's the reason for the ValidateInputs event on the command. You can check if the current values meet your criteria and set the value of the&amp;nbsp;&lt;A href="https://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/ValidateInputsEventArgs_areInputsValid.htm" target="_blank"&gt;areInputsValid&lt;/A&gt;&amp;nbsp;property on the &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-686e619b-7a6f-44d6-916e-465f50469026" target="_blank" rel="noopener"&gt;ValidateInputsEventsArg&lt;/A&gt; object appropriately. If this is False, the OK button will be disabled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 00:36:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12753137#M1464</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2024-05-05T00:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pause a script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12763389#M1465</link>
      <description>&lt;P&gt;Thanks Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Must have been a senior moment to not think of that.&lt;/P&gt;&lt;P&gt;Works great now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 18:26:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/pause-a-script/m-p/12763389#M1465</guid>
      <dc:creator>brad.bylls</dc:creator>
      <dc:date>2024-05-09T18:26:02Z</dc:date>
    </item>
  </channel>
</rss>

