MSBsplineCurve SectionCurve1 = GetMSBsplineCurveFromElement(ElementAgenda.GetEntry(0)); // start profile section curve
MSBsplineCurve SectionCurve2 = GetMSBsplineCurveFromElement(ElementAgenda.GetEntry(1)); // end profile section curve
MSBsplineCurve…