Tutorial-How to import points to solidworks from a text file !
If you just want to make spline with the points, you can do it without macro!
follow the procedure below:
the points should not be in a way that spline intersect itself and the text file for the point should contain coordinate of points as below:
open a new part
from the feature tab --> curve --> curve through XYZ points
then click on browse and change the type of file to text files (*.txt) as below:
select the text file of coordinates of points
the points are shown in the table as below then click OK:
the dimensions will be as the current part dimensions
Press "F" to fit the view
here it is: