API importing multiple txt file as xyz curves

Hi guys!

The Background

I have multiple text files with increment titles (Solid_Curve_1....Solid_Curve_2 ... Solid_Curve_21 ...)

Each set of coordinates (e.g Solid_Curve_1) contains a set of xyz points in space:

-0.006477 0.003790 0.016829

-0.006301 0.004081 0.016760

-0.006102 0.004171 0.016738

-0.005820 0.004210 0.016728

-0.005429 0.004265 0.016714

-0.004933 0.004336 0.016696

-0.004332 0.004418 0.016675

...................and goes on.........

The Goal

I want each set to do a curve through XYZ points to create the profiles, by opening a dialog box giving the option to choose which txt files i want to import + create3dsketch + convert entities to a new part.

Reference (tried working the macros + editing = no success so far...)

Thanks !

SolidworksApi macros