How to get the values of points that are made by intersection between lines and a surface

I wanna use VC to do it,and I have created two lines in space .The problem is that I have no idea how to get the values of the intersected points.

I have looked to  an example using a vector to get points‘ value ,which I find it don't take action here.One more,I have to get the values of points

intersected by the below surface in blue.

I hope you could help me.Thanks in advance.

Wilson

SolidworksApi macros