<?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 Splines connecting at one point in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/splines-connecting-at-one-point/m-p/6022526#M61429</link>
    <description>&lt;P&gt;I have created splines using the following pseudo code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Point2d[] oPPo = new Point2d[10]; // max number on the splines 

ObjectCollection oFitPoints = mApp.TransientObjects.CreateObjectCollection();
PlanarSketch oSketch = default(PlanarSketch);

for (int l = 0; l &amp;lt; splinesInFile; l++)
{
                    for (int k = 0; k &amp;lt; numberOfKnots; k++)
                    {
                        oPPo[k].X =(double) valueInX;
                        oPPo[k].Y =(double) valueInY;
                    }
for (int k = 0; k &amp;lt; numberOfKnots; k++)
                    {
                        oFitPoints.Add(oPPo[k]);
                    }

oSketch.SketchSplines.Add(oFitPoints,SplineFitMethodEnum.kSmoothSplineFit);
}

oProfile = oSketch.Profiles.AddForSolid();&lt;/PRE&gt;&lt;P&gt;this works rather well, except that the splines are separated. Even when I use the same point to start or finish the spline, they are not connected, which causes that extrusion is not possible afterwards. As if the regions are not connected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I connect the splines using a constraint or locating the splines under the same sketch ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 18:51:41 GMT</pubDate>
    <dc:creator>bravaiser</dc:creator>
    <dc:date>2016-02-03T18:51:41Z</dc:date>
    <item>
      <title>Splines connecting at one point</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/splines-connecting-at-one-point/m-p/6022526#M61429</link>
      <description>&lt;P&gt;I have created splines using the following pseudo code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Point2d[] oPPo = new Point2d[10]; // max number on the splines 

ObjectCollection oFitPoints = mApp.TransientObjects.CreateObjectCollection();
PlanarSketch oSketch = default(PlanarSketch);

for (int l = 0; l &amp;lt; splinesInFile; l++)
{
                    for (int k = 0; k &amp;lt; numberOfKnots; k++)
                    {
                        oPPo[k].X =(double) valueInX;
                        oPPo[k].Y =(double) valueInY;
                    }
for (int k = 0; k &amp;lt; numberOfKnots; k++)
                    {
                        oFitPoints.Add(oPPo[k]);
                    }

oSketch.SketchSplines.Add(oFitPoints,SplineFitMethodEnum.kSmoothSplineFit);
}

oProfile = oSketch.Profiles.AddForSolid();&lt;/PRE&gt;&lt;P&gt;this works rather well, except that the splines are separated. Even when I use the same point to start or finish the spline, they are not connected, which causes that extrusion is not possible afterwards. As if the regions are not connected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I connect the splines using a constraint or locating the splines under the same sketch ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 18:51:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/splines-connecting-at-one-point/m-p/6022526#M61429</guid>
      <dc:creator>bravaiser</dc:creator>
      <dc:date>2016-02-03T18:51:41Z</dc:date>
    </item>
  </channel>
</rss>

