How to create spline thru selected piont

Hi..

     I have no of point and i would like create spline thru seleted point..How write code for that or any help likn is available for that? please help...

Thank in Advance

SolidworksApi macros