<?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 Command Input Table For Dummies in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/command-input-table-for-dummies/m-p/10927619#M6687</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I've been getting into Fusion 360 Scripts API and making some headway but one thing that's still pretty confusing is the Command Input tables. I can use the ui.inputBox just fine. However when it comes to command input tables, it seems like there is a boatload of confusing boilerplate that you need to write just to make it work. The &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-e5c4dbe8-ee48-11e4-9823-f8b156d7cd97" target="_blank" rel="noopener"&gt;only example script that uses them&lt;/A&gt; is over 300 lines long!&lt;BR /&gt;&lt;BR /&gt;For instance, you have to make a bunch of custom child classes of&amp;nbsp;&lt;STRONG&gt;adsk.core.CommandCreatedEventHandler &lt;/STRONG&gt;and&lt;STRONG&gt; adsk.core.CommandEventHandler&lt;/STRONG&gt;, and it seems like they are usually called things like&amp;nbsp;&lt;STRONG&gt;MyCommandCreatedHandler,&amp;nbsp;MyExecuteHandler,&amp;nbsp;MyCommandDestroyHandler&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What the heck is all that stuff and why do we have to write it all? I would think a simple user input dialogue box with a few options would be much more straightforward.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can anyone put into plain English what these classes are and why we need them?&lt;/STRONG&gt; What is a Command Created Event Handler and how is it different from just a Command Event Handler (without the Command) or what is an Execute Handler or a Command Destroy handler?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Lastly, what is the bare minimum of code needed to make a user input command table dialogue box?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I've used python a lot and I have a good understanding of classes and inheritance, and I do know what event handlers are in general (something that watches for some trigger then does something when that happens) but I just don't know the specifics of these ones.&lt;BR /&gt;&lt;BR /&gt;Any help in clarifying these things would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 02:32:58 GMT</pubDate>
    <dc:creator>therealsamchaney</dc:creator>
    <dc:date>2022-02-04T02:32:58Z</dc:date>
    <item>
      <title>Command Input Table For Dummies</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/command-input-table-for-dummies/m-p/10927619#M6687</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I've been getting into Fusion 360 Scripts API and making some headway but one thing that's still pretty confusing is the Command Input tables. I can use the ui.inputBox just fine. However when it comes to command input tables, it seems like there is a boatload of confusing boilerplate that you need to write just to make it work. The &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-e5c4dbe8-ee48-11e4-9823-f8b156d7cd97" target="_blank" rel="noopener"&gt;only example script that uses them&lt;/A&gt; is over 300 lines long!&lt;BR /&gt;&lt;BR /&gt;For instance, you have to make a bunch of custom child classes of&amp;nbsp;&lt;STRONG&gt;adsk.core.CommandCreatedEventHandler &lt;/STRONG&gt;and&lt;STRONG&gt; adsk.core.CommandEventHandler&lt;/STRONG&gt;, and it seems like they are usually called things like&amp;nbsp;&lt;STRONG&gt;MyCommandCreatedHandler,&amp;nbsp;MyExecuteHandler,&amp;nbsp;MyCommandDestroyHandler&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What the heck is all that stuff and why do we have to write it all? I would think a simple user input dialogue box with a few options would be much more straightforward.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can anyone put into plain English what these classes are and why we need them?&lt;/STRONG&gt; What is a Command Created Event Handler and how is it different from just a Command Event Handler (without the Command) or what is an Execute Handler or a Command Destroy handler?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Lastly, what is the bare minimum of code needed to make a user input command table dialogue box?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I've used python a lot and I have a good understanding of classes and inheritance, and I do know what event handlers are in general (something that watches for some trigger then does something when that happens) but I just don't know the specifics of these ones.&lt;BR /&gt;&lt;BR /&gt;Any help in clarifying these things would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 02:32:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/command-input-table-for-dummies/m-p/10927619#M6687</guid>
      <dc:creator>therealsamchaney</dc:creator>
      <dc:date>2022-02-04T02:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command Input Table For Dummies</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/command-input-table-for-dummies/m-p/10927633#M6688</link>
      <description>&lt;P&gt;You should start by reading these two topics on Commands and Command Inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051" target="_blank"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8B9041D5-75CC-4515-B4BB-4CF2CD5BC359" target="_blank"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8B9041D5-75CC-4515-B4BB-4CF2CD5BC359&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that will answer most of your questions and whatever is left you can come back here.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 02:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/command-input-table-for-dummies/m-p/10927633#M6688</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-02-04T02:48:18Z</dc:date>
    </item>
  </channel>
</rss>

