9 Replies Latest reply on Mar 6, 2012 2:00 PM by Erik Bilello

# Splines from a collection of points

Anyways, I have about 200 points that I need to use to make a spline.  Is there anyway I can put them in a table and have solidworks make the curve based on the table?  As of now, the only way I see to make the curve is to dimension each point individually.

TIA

• ###### Re: Splines from a collection of points

Hi Ben,

You can insert a curve through XYZ points.  If you have the dimensions in tabular format (like in excel or notepad), you can import them and SolidWorks can make a curve from them.

Check out the help file in SolidWorks for more.

• ###### Re: Splines from a collection of points

Mind posting a link to the specific part of the help file that will address this?  I see "table driven patterns," but I'm not sure that's what I want?

• ###### Re: Splines from a collection of points

Sorry for not mentioning this before, but I need the curve to be part of a sketch, so I can revolve it about a centerline.  From what I can see, I'm not going to be able to revolve the curve if I make it by using the curve feature.  Or am I mistaken?

• ###### Re: Splines from a collection of points

If it is a 3D sketch, I wonder how you use feature revolve?

Could you upload the data, maybe someone can solve the question.

• ###### Re: Splines from a collection of points

Ha, I gave a vague description, I apologize.

Basically, I have a machined part that I need to create a solidworks part for.  The part is defined by a collection of diameters, each given as a function of an x-coordinate.  So the part's diameter at X = .001 is .375, the diameter at X = .011 is .3766, the diameter at X = .0156 is .3782, etc. etc.  I have a two pages of points printed out from the machine that machines the part.

The first thing that occured to me was to model the curve (radius as a function of x) and rotate the curve about a centerline.  Unfortunately, I'm looking at a print out, not a .txt or excel file.  Also I just have points, no equation for the curve.

Since I have to enter the points manually anyways, I'm just be constraining individual points relative to the origin.  Far from ideal, but I'm almost done.

• ###### Re: Splines from a collection of points

an option to consider in the futer then would be to put the points into excel and see if it can give you a decently fitting equation. then you could use an equationdriven curve in SW. if not you could save it as a .txt and do the curve through points.

• ###### Re: Splines from a collection of points

Ben,

I agree with Jeremy.  I think it would be much easier to enter that many points into a spreadsheet (lazy guy that I am, I'd be looking to see if I didn't have OCR somewhere) and then use Curve through XYZ Points.  Having the point values in a spreadsheet will also make it much easier to reuse the data if you need to in the future.

If you only need a 2D curve just fill in a constant for one of the values.  Use X, Y or Z depending on how you want the curve oriented and set the constant value to locate the curve where you need it.  SolidWorks won't care if your 3D curve is really only 2D and as Robert explains it is quite simple to get your curve into a sketch if thats what you need.

It might be too late for this project, but keep it in mind if you have something similar in the future.

• ###### Re: Splines from a collection of points

Once you import the curve, create a 2D sketch.  Then click on the curve to highlight it and use convert entities (Tools > Sketch Tools > Convert Entities).  This will create a sketch spline of the curve with your 2D sketch.  Then just add a centerline and any other sketch entities you need for the revolve.