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);

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
GeometricConstraint.addMidPont Demonstrate the GeometricConstraint.addMidPont method.
GeometricConstraints.addCoincident Demonstrates the GeometricConstraints.addCoincident method.
SketchPoint.add Demonstrates the SketchPoint.add method.
Sketch Point API Sample Demonstrates creating a new sketch point.

Version

Introduced in version August 2014