There is no single, RhinoCommon method that does the equivalent of the
AlignProfiles command. But there is an sample of how the command works:
Where do you see this in Rhino?
Yes it Csec command
Sure, of course.
If I recall correctly, the
CSec command creates a plane from the cross section line point and then intersects the curves with that plane. The intersection are then used to create a cubic NURBS curve.
Curve.CreateInterpolatedCurve should work for this.