How do you feel about this tutorial? Help us to provide better content for you.
Thank you! Your feedback has been received.
There was a problem submitting your feedback, please try again later.
What do you think of this tutorial?
This tutorial requires:
DesignSpark Mechanical V6.0Here is how you can customise a point curve text (*.txt) file and the expected behaviour of the imported curve:

A spline curve is created by default or if the option Polyline=False is used. If the option Polyline=True is used, then the points are connected by straight line segments.

By default, 2D curves are created. When specifying 2D curves, the first column of the data points must be an integer and gives the height of the plane of one of the curves. The beginning of a new curve is specified by changing this height from one line to the next. If option 3D=True is used, the curves can be 3D.

Use the Fit keyword to specify whether Curve Fitting or Interpolation is used. Fit=True uses Curve Fitting. Curve Fitting creates a curve that "Fits" the data points using a specified tolerance. The curve may not pass exactly through all points and the distance from the curve to the point will be within the tolerance.

Use the Fittol keyword when Fit=True to specify the Curve Fitting tolerance in model units. For example, Fittol=1.0e2

The curve below uses Curve Fitting (i.e., Fit=True). A large tolerance (Fittol=2.0) is used to exaggerate the fact that the curve does not pass through the points but only gets within the specified tolerance.

Fit=False uses Interpolation. Interpolation requires that the curve pass exactly through all the points. An interpolation method is used to build a continuous curve through all the points. The curve below is interpolated (i.e. Fit=False). There are seven points in the file and the curve passes exactly through each one.
Key items to note:
Multiple curves are separated by blank lines.
You can import point curve text files that contain singlepoint curves, which will be created as points.
PointSingle location in the sketch grid. 2D object that has no height, width, or length. The origin, an axis, and a vertex are examples of points. Use the Point tool to sketch a point on the sketch grid. Points are useful as a dimensional reference, for splitting, and for creating a point on a line or curve through which you want to draw a threepoint circle.curve text files opened or inserted in display a closed curve when the file has a repeated value.
Curves can be imported to coordinate systems or other geometry like other imported objects.
If there is an error reading the input text file, a message will appear with the line number of the error in parentheses followed by the text appearing on that line.
The following example shows the contents of a point curve text file on the left and the 3D curves it creates on the right:
 Note that the point coordinates are (Z, X, Y).
 For example (1, 2, 3) is (Z=1, X=2, Y=3).
3d=true 1 0 0 3 0 0 
Keywords
polyline=false  spline curves are created.
polyline=true  straight lines are created.
3d=true  3D curves are created.
3d=false  curves are twodimensional. This is also the case if the option is not set.
fit=true  use Curve Fitting.
Curve Fitting finds the "Best Fit" through the points.
Does not require the curve to pass through all of the points
fit=false  use Interpolation.
Interpolation forces the curve to pass through all the points in the file.
fittol=1.0e2  Curve Fitting tolerance in the units used in the file.
The blank line after the first set of coordinates indicates that the next set of coordinates is a new curve.
You can copy the file contents above and paste them into a text file, then use File to try it yourself.
Comments