Annotation Text String Field Length (Environment setting)

Tools that honor the Annotation Text String Field Length environment will override the default field length on the TextString field in any annotation feature classes created in a database.

Usage notes

  • If the Annotation Text String Field Length environment is not set, the default field length will be used for the TextString field.
  • Set the Annotation Text String Field Length value to cover the longest annotation feature in the feature class and allow for edits.
  • Use blank or 0 to return the Annotation Text String Field Length value to the default.

Dialog syntax

Annotation Text String Field Length—The length of the TextString field in the annotation feature class

Scripting syntax

arcpy.env.annotationTextStringFieldLength = integer

ParameterExplanation

integer

The length of the TextString field in the annotation feature class.

annotationTextStringFieldLength syntax

Script example

import arcpy

# Set the annotation TextString field length to 500
arcpy.env.annotationTextStringFieldLength = 500

Related topics