<?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 Re: Spline problems in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9184246#M13099</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mr. DinoCoglitore,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;I am delighted&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; to hear it... two birds with one stone ... your code is fixed, and you seem to be happy ... and I checked my &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;telepathy&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; ... it has worked like a charm ... so &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;I am glad too&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;With Regards&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;MichaelT&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 10:17:32 GMT</pubDate>
    <dc:creator>MichaelT_123</dc:creator>
    <dc:date>2019-12-05T10:17:32Z</dc:date>
    <item>
      <title>Spline problems</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9180159#M13096</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all, I write for clarification and help regarding a behavior of the sketchFittedSplines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Several years ago (2016) I wrote an add-in (made available to the community) for the creation of a helix.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The attached images show the result of a simple example of the application:&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="helix 2016" style="width: 155px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703918i0FCCBC09CDC4ABBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="helix_2016.JPG" alt="helix 2016" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;helix 2016&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="loft_2016.JPG" style="width: 147px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703921iDE4BE5F456BEFB1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="loft_2016.JPG" alt="loft_2016.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pipe_2016.JPG" style="width: 131px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703922iCC0221E333CD4F62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pipe_2016.JPG" alt="pipe_2016.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sweep.JPG" style="width: 138px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703923i355DFDD70A9E4ED2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sweep.JPG" alt="sweep.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its course, realized with a spline, results homogeneous and without discontinuity in the whole path.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="zoom_2016.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703928iCD146B35930D9126/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zoom_2016.JPG" alt="zoom_2016.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This smooth course allowed me to create models of various types on it, using sweeps, lofts and pipes. As you can see from the attached figures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have re-tried that old project to take up some ideas of models that had remained in the drawer. I have not modified the script in any way. But ……..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I see that the behavior has changed strangely. The spline is no longer sweet and harmonious but presents at each cycle a cusp that prevents me from exploiting the path as a path to realize any 3D model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="helix_2019.JPG" style="width: 129px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703929iF11A02853EC330FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="helix_2019.JPG" alt="helix_2019.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="zoom_2019.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703930i8B6B4D954B608F21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zoom_2019.JPG" alt="zoom_2019.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At each cycle there is now a cusp with a double tangent in the point.&lt;/P&gt;&lt;P&gt;When I try to create a simple pipe, there is an error as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pipe_2_2019.JPG" style="width: 372px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703932i9A395E236CE9CBA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pipe_2_2019.JPG" alt="pipe_2_2019.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="error_pipe.JPG" style="width: 363px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703931iE3256986D49B8335/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error_pipe.JPG" alt="error_pipe.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not allow me to create the pipe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pipe can be created only up to that point of discontinuity.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pipe_3_2019.JPG" style="width: 335px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/703933i5C9B4233F056F944/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pipe_3_2019.JPG" alt="pipe_3_2019.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same problems exist trying to create a loft.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is: has anything changed in the implementation of splines of something else? Do I need to change something in the script to adapt it to new features I don't know?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks . Dino&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 17:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9180159#M13096</guid>
      <dc:creator>dinocoglitore</dc:creator>
      <dc:date>2019-12-03T17:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spline problems</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9181270#M13097</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mr.DinoCoglitore,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without knowing the code you produced, and also not being a &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;fly on the monitor&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; of the developer in &lt;EM&gt;&lt;STRONG&gt;F360&lt;/STRONG&gt;&lt;/EM&gt; office I can only use &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;telepathy&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;, &lt;FONT color="#FF00FF"&gt;&lt;EM&gt;&lt;STRONG&gt;which not always work&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;It tells me &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;somehow?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; that you are adding unnecessary fit point every turn ( in effect having two of them overlapping).&lt;/P&gt;&lt;P&gt;This is big &lt;EM&gt;&lt;STRONG&gt;NO-NO&lt;/STRONG&gt;&lt;/EM&gt; from spline math machinery innerworkings. Various spline algorithms can deal with the issue in different ways e.g. throwing exception, ignoring one point, &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;creating discontinuities by ignoring calculating higher derivatives&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;...&lt;/P&gt;&lt;P&gt;Consider looking into this part of your code,... it might be the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;MichaelT&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 05:56:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9181270#M13097</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2019-12-04T05:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spline problems</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9184130#M13098</link>
      <description>&lt;P&gt;Hi Mr MichaelT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to thank you very much for your immediate reply. Surely you are not a "fly on the monitor" but in this case your telepathy worked very well! Although I have not attached the script code you have hit the mark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your answer is correct. I reviewed the behavior of the script and I verified that in the discontinuity points the script causes an overlap of points of which I had not previously realized. By deleting one of the two points, the spline behaves correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previous versions of Fusion 360 did not highlight this malfunction, which mainly depends on my limited experience as a programmer, and which therefore went unnoticed. Now that I understand the problem, thanks to your help, I will review the code in an attempt to eliminate duplication of points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dino&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 09:17:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9184130#M13098</guid>
      <dc:creator>dinocoglitore</dc:creator>
      <dc:date>2019-12-05T09:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spline problems</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9184246#M13099</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mr. DinoCoglitore,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;I am delighted&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; to hear it... two birds with one stone ... your code is fixed, and you seem to be happy ... and I checked my &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;telepathy&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; ... it has worked like a charm ... so &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;I am glad too&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;With Regards&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;MichaelT&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 10:17:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/spline-problems/m-p/9184246#M13099</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2019-12-05T10:17:32Z</dc:date>
    </item>
  </channel>
</rss>

