SketchFittedSplines.add Method

Parent Object: SketchFittedSplines
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/SketchFittedSplines.h>

Description

Creates a new fitted spline through the specified points.

Syntax

"sketchFittedSplines_var" is a variable referencing a SketchFittedSplines object.

returnValue = sketchFittedSplines_var.add(fitPoints)
"sketchFittedSplines_var" is a variable referencing a SketchFittedSplines object.

#include <Fusion/Sketch/SketchFittedSplines.h>

returnValue = sketchFittedSplines_var->add(fitPoints);
"sketchFittedSplines_var" is a variable referencing a SketchFittedSplines object.

returnValue = sketchFittedSplines_var.add(fitPoints);

Return Value

Type Description
SketchFittedSpline Returns the newly created SketchFittedSpline object if the creation was successful or null if it failed.

Parameters

Name Type Description
fitPoints ObjectCollection A collection of points that the curve will fit through. They can be any combination of existing SketchPoint or Point3D objects.

Samples

Name Description
Sketch spline through points creation and relative functions API Sample

Demonstrates create a sketch spline with points and use some operations for spline tangent handle & curvature handle.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2014