How to get the intersection point of a spline vs a circle and a spline vs a line.

Hello,

I would like to get the intersection point of a spline vs a circle and a spline vs a line by using API(c++).

The spline has two types.(spline and spline from polyline)

 I used the latest DraftSight (V1 R5.2). 

Thanks