SketchSplines.Add Method

Parent Object: SketchSplines

Description

Method that creates a sketch spline through the set of input points.

Syntax

SketchSplines.Add( FitPoints As ObjectCollection, [FitMethod] As SplineFitMethodEnum ) As SketchSpline

Parameters

Name Type Description
FitPoints ObjectCollection Input ObjectCollection that contains the set of points to fit the curve through. The points can be either existing SketchPoint objects or Point2d objects. If a Point2d object is input a SketchPoint is automatically created at that position. The curve passes through all of the fit points and is related to them by SplineFitPointConstraints, which are also automatically created.
FitMethod SplineFitMethodEnum Property that indicates the fit method (SplineFitMethodEnum) used for the spline.

This is an optional argument whose default value is 26370.

Samples

Name Description
Spline - create NURBS This sample demonstrates the creation of a sketch spline using a geometry definition (a NURB). The API also supports creation of 3D sketch splines in a similar way.
Sketch Spline This sample demonstrates creating and manipulating a sketch spline.

Version

Introduced in version 5