i've made 2 seperate bsplinecurves and a couple of lines. Now i'm at the part of giving relations between these. I want the end of the line, connected to the startpoint of the bsplinecurve. This works fine. After that, i want the endpoint of the bsplinecurve connect with the startpoint of another line. when i do this, the line is connected to the second keypoint of the curve and not to the endpoint( See image).
There is a function in the Samples for Solid Edge that will find the end point index.
Private Shared Function GetBSplineCurves2dEndKeyPointIndex(ByVal bsplineCurve2d As SolidEdgeFrameworkSupport.BSplineCurve2d) As Integer
' Keypoint indices are zero-based......
For i As Integer = 0 To bsplineCurve2d.KeyPointCount - 2
Dim x As Double = 0
Dim y As Double = 0
Dim z As Double = 0
Dim keypointType As SolidEdgeFramework.KeyPointType
Dim handleType As Integer = 0
bsplineCurve2d.GetKeyPoint(Index:= i, x:= x, y:= y, z:= z, KeypointType:= keypointType, HandleType:= handleType)
If keypointType = SolidEdgeFramework.KeyPointType.igKeyPointEnd Then