Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bravaiser
225 Views, 0 Replies

Splines connecting at one point

I have created splines using the following pseudo code:

 

 

Point2d[] oPPo = new Point2d[10]; // max number on the splines 

ObjectCollection oFitPoints = mApp.TransientObjects.CreateObjectCollection();
PlanarSketch oSketch = default(PlanarSketch);

for (int l = 0; l < splinesInFile; l++)
{
                    for (int k = 0; k < numberOfKnots; k++)
                    {
                        oPPo[k].X =(double) valueInX;
                        oPPo[k].Y =(double) valueInY;
                    }
for (int k = 0; k < numberOfKnots; k++)
                    {
                        oFitPoints.Add(oPPo[k]);
                    }

oSketch.SketchSplines.Add(oFitPoints,SplineFitMethodEnum.kSmoothSplineFit);
}

oProfile = oSketch.Profiles.AddForSolid();

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.

 

 

How can I connect the splines using a constraint or locating the splines under the same sketch ?

 

thank you in advance

 

Tags (2)