Sketch / reference planes intersection

Hello, I have a sketch with a spline and several planes intersecting it. Is there a way to get the points where the reference planes intersect the spline programmatically?

Maybe using 3D sketches?

Thank you in advance.

SolidworksApi macros