How to get the coordinates of 100 points on the curve as an array

Hello.

how to get the coordinates of 100 points on the curve as an array (double[]). Only data, without objects in part.

I know this method:

     InsertReferencePoint(swRefPointAlongCurve, swRefPointAlongCurveEvenlyDistributed, 0#, 100)

but, i need to process 10,000 curves so this method is not suitable.

Help me please.

SolidworksApi/macros