<?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 [Add-In] user-parameter driven results - is this possible? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/add-in-user-parameter-driven-results-is-this-possible/m-p/9484832#M11866</link>
    <description>&lt;P&gt;Pardon my newbie question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My add-in creates a sketch, based on inputs from my user.&amp;nbsp; Does Fusion360 have a way to tell me *later* if any of those parameters have changed, so my Add-in can update what it did?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My *guess* (I'm a programmer) is that fusion 360 should be "remembering" everything it fed in to my command, along with the output of my command - and later if anything changes, it should auto-magically "erase" what my command originally outputted, re-run my command with the (now updated) input that it "remembered", so my add-in can re-output the updated solution.&amp;nbsp; Or, more usefully, instead of "erase", allow me some mechanism to instruct it how the new output differs from the original output (e.g. in my case - give updated locations for a range of points along which a spline has been built) - which probably means giving me a copy of both the old and the new inputs, and allowing me some way to explain back to it which bits I originally provided (e.g. list of sketch points) and how they are now changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example - I've got these 2 user parameters (chord_len and max_speed):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-01 at 8.35.10 pm.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763616i422F83D9F5A42BF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-05-01 at 8.35.10 pm.png" alt="Screen Shot 2020-05-01 at 8.35.10 pm.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-01 at 8.39.12 pm.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763617iA46627A8279DA66C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-05-01 at 8.39.12 pm.png" alt="Screen Shot 2020-05-01 at 8.39.12 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I created a sketch with a line that is chord_len long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run my addin and use it to select the two points at the start and end of that line, and enter max_speed into my addin command entry panel like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-01 at 8.40.43 pm.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763618iB46B866441C5344B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-05-01 at 8.40.43 pm.png" alt="Screen Shot 2020-05-01 at 8.40.43 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Which inserts my result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Demo_Fan.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763619i757E719859F3E52A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Demo_Fan.png" alt="Demo_Fan.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Right now, if I move any of the points, or change any of the user parameters (chord_len or max_speed), my add-in is not being consulted, so the previously-inserted shape which is still showing, is now really wrong (wrong size, and wrong geometry for the new flow regime).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am "hooked in" to&amp;nbsp; ValidateInputsEventHandler, InputChangedEventHandler, and&amp;nbsp;CommandEventHandler - I was expecting that last one to get called again when I changed stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Is this possible, and&lt;/P&gt;&lt;P&gt;b) if yes, what's the high-level answer for how this works and what I need to do/use ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2020 11:03:09 GMT</pubDate>
    <dc:creator>OceanHydroAU</dc:creator>
    <dc:date>2020-05-01T11:03:09Z</dc:date>
    <item>
      <title>[Add-In] user-parameter driven results - is this possible?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/add-in-user-parameter-driven-results-is-this-possible/m-p/9484832#M11866</link>
      <description>&lt;P&gt;Pardon my newbie question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My add-in creates a sketch, based on inputs from my user.&amp;nbsp; Does Fusion360 have a way to tell me *later* if any of those parameters have changed, so my Add-in can update what it did?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My *guess* (I'm a programmer) is that fusion 360 should be "remembering" everything it fed in to my command, along with the output of my command - and later if anything changes, it should auto-magically "erase" what my command originally outputted, re-run my command with the (now updated) input that it "remembered", so my add-in can re-output the updated solution.&amp;nbsp; Or, more usefully, instead of "erase", allow me some mechanism to instruct it how the new output differs from the original output (e.g. in my case - give updated locations for a range of points along which a spline has been built) - which probably means giving me a copy of both the old and the new inputs, and allowing me some way to explain back to it which bits I originally provided (e.g. list of sketch points) and how they are now changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example - I've got these 2 user parameters (chord_len and max_speed):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-01 at 8.35.10 pm.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763616i422F83D9F5A42BF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-05-01 at 8.35.10 pm.png" alt="Screen Shot 2020-05-01 at 8.35.10 pm.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-01 at 8.39.12 pm.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763617iA46627A8279DA66C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-05-01 at 8.39.12 pm.png" alt="Screen Shot 2020-05-01 at 8.39.12 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I created a sketch with a line that is chord_len long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run my addin and use it to select the two points at the start and end of that line, and enter max_speed into my addin command entry panel like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-01 at 8.40.43 pm.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763618iB46B866441C5344B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-05-01 at 8.40.43 pm.png" alt="Screen Shot 2020-05-01 at 8.40.43 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Which inserts my result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Demo_Fan.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/763619i757E719859F3E52A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Demo_Fan.png" alt="Demo_Fan.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Right now, if I move any of the points, or change any of the user parameters (chord_len or max_speed), my add-in is not being consulted, so the previously-inserted shape which is still showing, is now really wrong (wrong size, and wrong geometry for the new flow regime).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am "hooked in" to&amp;nbsp; ValidateInputsEventHandler, InputChangedEventHandler, and&amp;nbsp;CommandEventHandler - I was expecting that last one to get called again when I changed stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Is this possible, and&lt;/P&gt;&lt;P&gt;b) if yes, what's the high-level answer for how this works and what I need to do/use ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 11:03:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/add-in-user-parameter-driven-results-is-this-possible/m-p/9484832#M11866</guid>
      <dc:creator>OceanHydroAU</dc:creator>
      <dc:date>2020-05-01T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Add-In] user-parameter driven results - is this possible?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/add-in-user-parameter-driven-results-is-this-possible/m-p/9519192#M11867</link>
      <description>&lt;P&gt;It's not currently possible to have your add-in respond to modeling changes.&amp;nbsp; The best solution I've come up with is a separate command button that the user can click to force an update.&amp;nbsp; Ideally, this same process would have been automatically triggered by my add-in responding to a model changed event.&amp;nbsp; Instead, the user can manually force the update.&amp;nbsp; I use this for my &lt;A href="https://ekinssolutions.com/product/nifty-dogbones-f360/" target="_blank" rel="noopener"&gt;Nifty Dogbone add-in&lt;/A&gt;.&amp;nbsp; It's still not simple to implement.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 16:02:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/add-in-user-parameter-driven-results-is-this-possible/m-p/9519192#M11867</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-05-15T16:02:45Z</dc:date>
    </item>
  </channel>
</rss>

