Anno Editor

Created:3/30/2001
Description:

The Anno Editor tool is designed to allow the placement of selected annotation relative to other line and polygon features. The annotation does not need to be feature linked to these feature. When the tool is used, annotation can be dragged parallel or perpendicular to the specified line or polygon feature at a specified offset.

How to use:
  1. In the Customize dialog, click on 'Add from file' and select this sample's dll.
  2. Under the Commands tab of the Customize dialog, select the Anno Edit tool from the 'Developer Samples' category, and drag it on to a toolbar. It is not necessary to add the Parallel, Perpendicular, or Set Offset to a toolbar as they are used within the Anno Edit tool as part of a context menu. Dismiss the Customize dialog.
  3. Begin editing and select a piece of annotation with the Graphics tool (not the Edit tool).
  4. Select the Anno Edit tool.
  5. If the annotation is feature linked to a line feature, you will be able to drag the annotation along that feature by holding down the left mouse button.
  6. To specify a different feature to drag the anno along, right click on that line or polygon feature and select parallel or perpendicular. The context menu can also be used to specify the offset distance.

Application:
ArcMap

Requires: Editable annotation data

Difficulty: Advanced


Visual Basic
File Description
basSettings Basic module containing global variable declarations and key routines.
AnnoEdit.cls Tool used to reposition annotation relative to another feature.
AnnoEdit_Offset.cls Context menu command for specifying the offset to use.
AnnoEdit_Parallel.cls Context menu command for specifying a feature to place the annotation parallel to.
AnnoEdit_Perp.cls Context menu command for specifying a feature to place the annotation perpendicular to.
AnnoEditPrj.vbp The project file for the Anno Edit tool.
frmResources.frm Form containing the icons used with the commands.


Key CoClasses: Map, Polyline, TextElement
Key Interfaces: IAnnotationElement, ICurve, IElement, IGraphicsContainer, ITextElement
Key Members: IAnnotationElement::Feature, ICurve::GetSubcurve, IElement::QueryOutline, IGraphicsContainer::UpdateElement, ITextElement::Symbol, ITextElement::Text