<?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 Using custom graphics while command inputs are not valid in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600151#M8036</link>
    <description>&lt;P&gt;It seems that when&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-524b1e19-840f-4376-a523-60b621f50dbe" target="_blank" rel="noopener"&gt;ValidateInputsEventHandler&lt;/A&gt; determines that the inputs are not valid (using&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-dcf60135-6fcf-4ca5-bd53-b9df4cbea341" target="_blank" rel="noopener"&gt;ValidateInputsEventArgs.areInputsValid&lt;/A&gt; Property), it not only disables the OK button, but also prevents the firing of ExecutePreview event handler. With that in mind, is there any method to use custom graphics when inputs are invalid and ExecutePreview event handler is disabled? For example&amp;nbsp;use custom graphics to graphically show the user why inputs are not valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought instead of setting areInputsValid to false we can set &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-10859cb7-0055-4567-8d11-6840cff0714e" target="_blank" rel="noopener"&gt;Command.isOKButtonVisible&lt;/A&gt; to false to prevent execution of command, but it seems it is not possible to set isButtonVisible property outside&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8fdbbb7e-5dd2-4a7d-938e-975b99ae3936" target="_blank" rel="noopener"&gt;CommandCreatedEventHandler.notify&lt;/A&gt; Method.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Sep 2021 03:57:32 GMT</pubDate>
    <dc:creator>nnikbin</dc:creator>
    <dc:date>2021-09-05T03:57:32Z</dc:date>
    <item>
      <title>Using custom graphics while command inputs are not valid</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600151#M8036</link>
      <description>&lt;P&gt;It seems that when&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-524b1e19-840f-4376-a523-60b621f50dbe" target="_blank" rel="noopener"&gt;ValidateInputsEventHandler&lt;/A&gt; determines that the inputs are not valid (using&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-dcf60135-6fcf-4ca5-bd53-b9df4cbea341" target="_blank" rel="noopener"&gt;ValidateInputsEventArgs.areInputsValid&lt;/A&gt; Property), it not only disables the OK button, but also prevents the firing of ExecutePreview event handler. With that in mind, is there any method to use custom graphics when inputs are invalid and ExecutePreview event handler is disabled? For example&amp;nbsp;use custom graphics to graphically show the user why inputs are not valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought instead of setting areInputsValid to false we can set &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-10859cb7-0055-4567-8d11-6840cff0714e" target="_blank" rel="noopener"&gt;Command.isOKButtonVisible&lt;/A&gt; to false to prevent execution of command, but it seems it is not possible to set isButtonVisible property outside&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8fdbbb7e-5dd2-4a7d-938e-975b99ae3936" target="_blank" rel="noopener"&gt;CommandCreatedEventHandler.notify&lt;/A&gt; Method.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 03:57:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600151#M8036</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2021-09-05T03:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom graphics while command inputs are not valid</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600171#M8037</link>
      <description>&lt;P&gt;I found that I can use custom graphics in other parts of the program like in ValidateInputsEventHandler, but they remain on screen and I should delete them when I do not need them. Is it a good practice or we should only use them in ExecutePreview event handler?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 04:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600171#M8037</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2021-09-05T04:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom graphics while command inputs are not valid</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600796#M8038</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2799701"&gt;@nnikbin&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think there is any limit to where I can use it.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 12:58:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-custom-graphics-while-command-inputs-are-not-valid/m-p/10600796#M8038</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2021-09-05T12:58:57Z</dc:date>
    </item>
  </channel>
</rss>

