Text.textValue Property

Parent Object: Text

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::drawing" and the header file is <Drawing/Notes/Text.h>

Description

Gets and sets the mixed symbol, plain-text, and property-field content of this text block. Obtain a TextDataValue from this property, use appendSymbol, appendText, appendProperty, and clear as needed, then assign the same object back to apply the content. Property fields resolve on set using the first model source on the sheet, the same as TextInput.textValue on create.

Syntax

"text_var" is a variable referencing a Text object.
# Get the value of the property.
propertyValue = text_var.textValue

# Set the value of the property.
text_var.textValue = propertyValue
"text_var" Is a variable referencing a Text Object.
#include <Drawing/Notes/Text.h>

// Get the value of the property.
Ptr<TextDataValue> propertyValue = text_var->textValue();

// Set the value of the property, where value_var is a TextDataValue.
bool returnValue = text_var->textValue(value_var);
"text_var" Is a variable referencing a Text Object.
// Get the value of the property.
propertyValue = text_var.textValue;

// Set the value of the property.
text_var.textValue = propertyValue;

Property Value

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

Version

Introduced in version November 2026