SketchTexts.add Method

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

Description

Creates a sketch text.

Syntax

"sketchTexts_var" is a variable referencing a SketchTexts object.
returnValue = sketchTexts_var.add(input)
"sketchTexts_var" is a variable referencing a SketchTexts object.

#include <Fusion/Sketch/SketchTexts.h>

returnValue = sketchTexts_var->add(input);

Return Value

Type Description
SketchText Returns the newly created SketchText object or null in the case of failure.

Parameters

Name Type Description
input SketchTextInput A SketchTextInput object created using the SketchTexts.createInput method.

Samples

Name Description
SketchTextInput.setAsAlongPath Demonstrates the SketchTextInput.setAsAlongPath method.
SketchTextInput.setAsFitOnPath Demoonstrates the SketchTextInput.setAsFitOnPath method.
SketchTextInput.setAsMultiLine Demonstrates the SketchTextInput.setAsMultiLine method.
Sketch Text API Sample Demonstrates creating sketch text by creating both mult-line text and text along a curve.

Version

Introduced in version March 2015