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:
-
Step 1:
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:
-
Step 2:
open a new part
from the feature tab --> curve --> curve through XYZ points -
Step 3:
then click on browse and change the type of file to text files (*.txt) as below:
-
Step 4:
select the text file of coordinates of points
-
Step 5:
the points are shown in the table as below then click OK:
the dimensions will be as the current part dimensions -
Step 6:
Press "F" to fit the view
here it is: