<?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 Important Note for API Clients in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9508424#M11774</link>
    <description>&lt;P&gt;We just released our May 2020 product update, and we've made some tweaks to the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've put in extra efforts to make Fusion 360's 3D modeling operations even more stable. That required performing stricter validation checks on inputs before performing any operation. Earlier an Add-In could request an operation with some invalid inputs, and Fusion used to accept them and tried to generate (potentially unstable) output if it can. After this update, Fusion 360 will start rejecting such requests and will error out. Unfortunately, that could mean potential breakage of your Add-Ins, if they performed such an operation.&lt;/P&gt;
&lt;P&gt;Here's a simple example of what an 'invalid' input looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="code panel"&gt;
&lt;DIV class="codeContent panelContent"&gt;
&lt;PRE class="code-java"&gt;...

# Sketch circle created with some arbitrary radius 
circle = sketch.sketchCurves.sketchCircles.addByCenterRadius(center, radius)

# Extract sketch profile out of it
profile = sketch.profiles[0]

# Adjust the circle radius
# BAD! Because &lt;SPAN class="code-keyword"&gt;this&lt;/SPAN&gt; will make the &lt;SPAN class="code-quote"&gt;'profile'&lt;/SPAN&gt; invalid.
# You should either &lt;SPAN class="code-keyword"&gt;do&lt;/SPAN&gt; &lt;SPAN class="code-keyword"&gt;this&lt;/SPAN&gt; before fetching the profile from sketch, or should re-fetch the profile now
circle.radius = 5
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
# Create sweep (without re-fetching sketch profile)
sweepFeats = feats.sweepFeatures
sweepInput = sweepFeats.createInput(profile, path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
sweepFeat = sweepFeats.add(sweepInput)

...&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;This used to work fine earlier as Fusion 360 was forgiving. But as this could lead to instabilities down the road, the sweep operation will fail from now on. This is just one example of many ways to make something invalid. Add-In authors would be the best judges of how it affects their scripts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're an Add-In author and need any assistance with this, please don't hesitate to reach out to us&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 00:39:38 GMT</pubDate>
    <dc:creator>keqingsong</dc:creator>
    <dc:date>2020-05-12T00:39:38Z</dc:date>
    <item>
      <title>Important Note for API Clients</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9508424#M11774</link>
      <description>&lt;P&gt;We just released our May 2020 product update, and we've made some tweaks to the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've put in extra efforts to make Fusion 360's 3D modeling operations even more stable. That required performing stricter validation checks on inputs before performing any operation. Earlier an Add-In could request an operation with some invalid inputs, and Fusion used to accept them and tried to generate (potentially unstable) output if it can. After this update, Fusion 360 will start rejecting such requests and will error out. Unfortunately, that could mean potential breakage of your Add-Ins, if they performed such an operation.&lt;/P&gt;
&lt;P&gt;Here's a simple example of what an 'invalid' input looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="code panel"&gt;
&lt;DIV class="codeContent panelContent"&gt;
&lt;PRE class="code-java"&gt;...

# Sketch circle created with some arbitrary radius 
circle = sketch.sketchCurves.sketchCircles.addByCenterRadius(center, radius)

# Extract sketch profile out of it
profile = sketch.profiles[0]

# Adjust the circle radius
# BAD! Because &lt;SPAN class="code-keyword"&gt;this&lt;/SPAN&gt; will make the &lt;SPAN class="code-quote"&gt;'profile'&lt;/SPAN&gt; invalid.
# You should either &lt;SPAN class="code-keyword"&gt;do&lt;/SPAN&gt; &lt;SPAN class="code-keyword"&gt;this&lt;/SPAN&gt; before fetching the profile from sketch, or should re-fetch the profile now
circle.radius = 5
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
# Create sweep (without re-fetching sketch profile)
sweepFeats = feats.sweepFeatures
sweepInput = sweepFeats.createInput(profile, path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
sweepFeat = sweepFeats.add(sweepInput)

...&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;This used to work fine earlier as Fusion 360 was forgiving. But as this could lead to instabilities down the road, the sweep operation will fail from now on. This is just one example of many ways to make something invalid. Add-In authors would be the best judges of how it affects their scripts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're an Add-In author and need any assistance with this, please don't hesitate to reach out to us&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 00:39:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9508424#M11774</guid>
      <dc:creator>keqingsong</dc:creator>
      <dc:date>2020-05-12T00:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Important Note for API Clients</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9508918#M11775</link>
      <description>&lt;P&gt;Thanks for letting us know.&amp;nbsp; Could you spare a moment to tell me if it's possible for our API to "hook in" to change events (e.g. updated user parameters)?&amp;nbsp; I've described it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/add-in-user-parameter-driven-results-is-this-possible/td-p/9484832" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/add-in-user-parameter-driven-results-is-this-possible/td-p/9484832&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 06:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9508918#M11775</guid>
      <dc:creator>OceanHydroAU</dc:creator>
      <dc:date>2020-05-12T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Important Note for API Clients</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9513107#M11776</link>
      <description>&lt;P&gt;I am sorry that I wrote a cheeky matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel that the fact that I don't know whether getting a property is "deep copy" or "shallow copy" is a misleading reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the method called "copy" is similar. Deep copy is easy to understand if you give it the name "clone".&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 14:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9513107#M11776</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-05-13T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Important Note for API Clients</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9517925#M11777</link>
      <description>&lt;P&gt;Thanks for the info&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1107852"&gt;@keqingsong&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 06:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/important-note-for-api-clients/m-p/9517925#M11777</guid>
      <dc:creator>marcinszydlowski.1984</dc:creator>
      <dc:date>2020-05-15T06:26:41Z</dc:date>
    </item>
  </channel>
</rss>

