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);
"sketchTexts_var" is a variable referencing a SketchTexts object.

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
Sketch Text API Sample

Demonstrates creating sketch text by creating both mult-line text and text along a curve.

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

Version

Introduced in version March 2015