SketchPoints.add Method

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

Description

Creates a point at the specified location. This is the equivalent of creating a sketch point using the Point command in the user interface and will create a visible point in the graphics window.

Syntax

"sketchPoints_var" is a variable referencing a SketchPoints object.

returnValue = sketchPoints_var.add(point)
"sketchPoints_var" is a variable referencing a SketchPoints object.

#include <Fusion/Sketch/SketchPoints.h>

returnValue = sketchPoints_var->add(point);
"sketchPoints_var" is a variable referencing a SketchPoints object.

returnValue = sketchPoints_var.add(point);

Return Value

Type Description
SketchPoint Returns the new sketch point or null if the creation fails.

Parameters

Name Type Description
point Point3D The coordinate location to create the sketch point.

Samples

Name Description
Sketch Point API Sample

Demonstrates creating a new sketch point.

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