Skip to main content

注记文本字符串字段长度 (环境设置)

支持“注记文本字符串字段长度”环境的工具将覆盖在数据库中创建的任何注记要素类中 TextString 字段的默认字段长度。

用法说明

  • 如果未设置“注记文本字符串字段长度”环境,则将针对 TextString 字段使用默认字段长度。

  • 设置“注记文本字符串字段长度”值,以容纳要素类中最长的注记要素,并允许进行编辑。

  • 使用空白或 0 可将“注记文本字符串字段长度”值恢复为默认值。

对话框语法

注记文本字符串字段长度 - 注记要素类中 TextString 字段的长度

Python 语法

arcpy.env.annotationTextStringFieldLength = integer

名称 说明

integer

注记要素类中 TextString 字段的长度。

脚本语法

import arcpy

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