[VBA] How to get the point projected to a bsplinesurface?

I have a bsplinesurface and a point3d below bsplinesurface. I want to get the point projected to the bsplinesurface with vba. I tried some way.

1, projectedpoint=bsplinesurface.ProjectPointOnPerpendicular(point3d, Matrix3dIdentity)

I get a error after running it.

2, point3d()=bsplinesurface.GetIntersectionPoints(lineelement, Matrix3dIdentity)

I get a many points, but it is not a point that I want.

3, point3d()= bsplinecurve.IntersectSurface(Parameters, SurfaceParameters, BsplineSurface)

I get a error after running it. I guess that I made a mistake. I don't know what I have to give as Parameters and SurfaceParameters...

Can someone tell me the good way?

Parents Reply Children
No Data