码迷,mamicode.com
首页 > 其他好文 > 详细

Editing the attributes of annotation编辑注记属性

时间:2020-10-21 20:40:20      阅读:20      评论:0      收藏:0      [点我收藏+]

标签:对齐   outside   状态   cts   center   htm   文字   src   imm   

Editing the attributes of annotation编辑注记属性

Editing the attributes of annotation

You can edit annotation attributes in the Attributes window, which provides access to the record values in the attribute table. When these edits are made, the BLOB element is updated and you can see the change to the annotation‘s display. You can edit the following attributes in the Attributes window:

FeatureID

Bold

Angle

AnnotationClassID

Italic

FontLeading

SymbolID

Underline

WordSpacing

Status

VerticalAlignment

CharacterWidth

TextString

HorizontalAlignment

CharacterSpacing

FontName

XOffset

FlipAngle

FontSize

YOffset

 

These attributes cannot be edited at the database level with SQL code. When these fields are updated through ArcGIS, it results in changes to the feature‘s BLOB element that SQL does not trigger. When you update these fields using SQL outside ArcGIS, the text symbol fields associated with each annotation feature for all the updated rows do not update. To perform these updates outside ArcGIS, ArcObjects must be used.

Learn more about updating data using SQL

Steps:

  1. Click the Edit tool 技术图片 or the Edit Annotation tool 技术图片 on the Editor toolbar and select the annotation.
  2. Click the Attributes button 技术图片 on the Editor toolbar.

You can also double-click an annotation feature with the Edit Annotation tool to open the Attributes window.

  1. Click the Annotation or the Attributes tab. The Annotation tab allows you to make multiple changes and preview them before applying them, while the Attributes tab provides a grid of attribute fields and values.
  2. If you are using the Attributes tab, click the value you want to change—for example, TextString. Type the new value for the attribute.

If you need to update the text for feature-linked annotation, update the attributes of the origin feature (for example, the attributes of the line the annotation is linked to) from which the annotation is derived. When you do that, the updates are reflected immediately in the annotation feature‘s text. If you directly edit the TextString property of the annotation feature itself, your changes will be overwritten if the attribute on the linked feature is modified later.

  1. Optionally, modify other attributes, such as the font or font size.
  2. To change an attribute value for more than one feature at a time, select all the annotation features you want to change, click the annotation layer name, then set the values.
  3. If you are using the Annotation tab, click Apply to commit the changes. If you are using the Attributes tab, the changes are updated as soon as you click away from the field.

 

编辑注记属性

可在"属性"窗口中编辑注记属性,通过此窗口可访问属性表中的记录值。进行这些编辑后,BLOB 元素会更新,且可看到注记显示的更改。可在"属性"窗口中编辑以下属性:

要素 ID

粗体

角度

注记类 ID

斜体

行间距

符号 ID

下划线

文字间距

状态

垂直对齐

字符宽度

文本字符串

水平对齐

字符间距

字体名称

X 偏移

翻转角度

字体大小

Y 偏移

 

 

无法在数据库级别使用 SQL 代码对这些属性进行编辑。这些字段通过 ArcGIS 更新后,将会导致 SQL 不会触发的要素的 BLOB 元素发生更改。在 ArcGIS 外部使用 SQL 更新这些字段后,对于所有更新的行,与每个注记要素关联的文本符号字段将不会更新。要在 ArcGIS 外部执行这些更新,必须使用 ArcObjects。

了解有关使用 SQL 更新数据的详细信息

步骤:

  1. 单击编辑器 工具条上的编辑工具 技术图片技术图片或编辑注记工具 技术图片技术图片,并选择注记。
  2. 单击编辑器 工具条上的属性按钮 技术图片技术图片

    也可使用"注记编辑"工具双击注记要素来打开"属性"窗口。

  3. 单击注记 或属性 选项卡。注记 选项卡可用于进行多次更改并在应用前对这些更改进行预览,而属性 选项卡可提供属性字段和值的格网。
  4. 如果正在使用属性 选项卡,则单击想要更改的值,例如"文本字符串"。为属性输入新值。

    如果需要更新关联要素的注记的文本,请将派生该注记的源要素的属性(如与注记关联的线的属性)更新。如此操作后,更新会马上反映到注记要素的文本中。如果直接编辑该注记要素本身的文本字符串属性,那么当关联要素的属性稍后被修改时将覆盖您的更改。

  5. 或者,也可修改其他属性,例如字体或字体大小。
  6. 要一次更改多个要素的属性值,先选择要更改的所有注记要素,单击注记图层名称,然后设置值。
  7. 如果正在使用注记 选项卡,则单击应用提交更改。如果正在使用属性 选项卡,则在远离字段的位置进行单击后,更改即会被更新。

单位机构和项目咨询,不接受个人名义的咨询:email: xiexiaokui#qq。com(个人勿扰)

Editing the attributes of annotation编辑注记属性

标签:对齐   outside   状态   cts   center   htm   文字   src   imm   

原文地址:https://www.cnblogs.com/xiexiaokui/p/13850007.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!