Macro for Curve Drawing

Hello everyone,

Here's my problem, I'd like to draw the points of passage of a curve according to coordinates.

the idea being to have an excel file in which I enter the coordinates of the different points and that via a macro the drawing of the points is done automatically in a Solidworks sketch.

Having never put my nose into macro production, I am calling on you to know if there is a file of this type because for the moment I have not found anything or if I will be forced to rate all the points one by one which annoys me.

Thanks in advance!

Jérémy

Hello

The CurveData tool from the myCADtools suite does the job

Cdlt


curvedata.png
2 Likes

See this tutorial among others

which I think will solve your problem

http://www.lynkoa.com/contenu/video-tutorial-creating-curves-importing-point-data-text-file-solidworks

@+ ;-)

1 Like

No need for "third-party tools" to do this,

in a PRT Part:

Insert/Curve/Curve Passing By... XYZ

http://help.solidworks.com/2016/french/solidworks/sldworks/hidd_curve_in_file.htm

you can enter the data from Excel, then save your data in *.txt format with a space or tab separator.

Start data from the first row (so no column headers)

3 Likes

Thank you for your answers,

I didn't know the myCADtools tool, it's super efficient.

For the curve tool going through XYZ I had some problems, especially with the decimals that it didn't take into account...

Thank you again, subject closed!