Modelling objects by importing coordinates from text files

SOLIDWORKS allows the creation of sketches based on coordinates from text files. Most airfoil data are presented in the form of coordinates. Having a modelling software that allows you define your sketches based on these coordinates are essential nowadays.

It is very easy to do that on SOLIDWORKS, follow these steps below and see how an airfoil blade can be generated using coordinates.

With this feature, you can extract coordinate data from a part, like a surface in SOLIDWORKS. First create a new part inside SOLIDWORKS.


Move to the tools drop down and select macro. Remember that the text file you are working with should only have the coordinates X, Y, Z separated by spaces.

Type the following code. Remember to edit the name of the text file where needed.

Save the macro and move to the SOLIDWORKS part window. Click on Tools, in the drop down menu, select Macro and run the macro you have just created.

Once this is done, SOLIDWORKS automatically imports the coordinates from the text file.


From the points, you can then generate curves and define a surface based on this curve. Move to the insert tab and select the curve feature. In the drop down menu select the curve from reference points feature.

You can then select the points that define your curve. Remember to select the closed curve check box to ensure there are no gaps.


Once this is done, use the surface extrude or the extrude command to create solid bodies or surfaces based on this sketch.


This is how SOLIDWORKS makes it easy to create airfoil models based on some given coordinates, demonstrating its superior nature.