SketchText.text Property

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

Description

This function is retired. See more information in the 'Remarks' section below.

This property has been retired and you should now use the textValue and expression properties of the Parameter object associated with this SketchText, which you can obtain by using the SketchText.textParameter property.

Remarks

Gets and sets the text. This is a simple string and ignores any formatting defined within the text.

Syntax

"sketchText_var" is a variable referencing a SketchText object.

# Get the value of the property.
propertyValue = sketchText_var.text

# Set the value of the property.
sketchText_var.text = propertyValue
"sketchText_var" is a variable referencing a SketchText object.
#include <Fusion/Sketch/SketchText.h>

// Get the value of the property.
string propertyValue = sketchText_var->text();

// Set the value of the property, where value_var is a string.
bool returnValue = sketchText_var->text(value_var);

Property Value

This is a read/write property whose value is a string.

Version

Introduced in version March 2015
Retired in version November 2025