This document is archived and information here might be outdated.  Recommended version.


IDimensionEditExtension Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IDimensionEditExtension Interface

Provides access to members that control dimension feature editing.

Product Availability

Available with ArcGIS Desktop.

Members

Description
Read/write property CreateStyleID The style id of newly created dimension features.
Write-only property CurrentConstructor The currently selected dimension constructor.
Read-only property DimensionConstructors The dimension constructors for creating new dimensions.
Read-only property Editor The editor application extension.
Read-only property IsDimensionTarget Indicates if a dimension feature class is the current editor target.

CoClasses that implement IDimensionEditExtension

CoClasses and Classes Description
DimensionEditExtension An editor extension for creating and editing dimension features.
[C#]

The following example illustrates how to obtain a reference to the DimensionEditExtension in C#.

public void GetEditorExtensionByCLSID()
{
  //You can get app from ICommand :: OnCreate() hook parameter
  UID editorUid=new UIDClass();
  editorUid.Value="esriEditor.Editor";
  IEditor editor=app.FindExtensionByCLSID(editorUid) as IEditor;

  UID dimUid=new UIDClass();
  dimUid.Value="esriEditorExt.DimensionEditExtension";
  IDimensionEditExtension dimEditExt=editor.FindExtension(dimUid) as IDimensionEditExtension;
}
[Visual Basic .NET]

The following example illustrates how to obtain a reference to the DimensionEditExtension in VBNet.

  Public Sub GetEditorExtensionByCLSID()
    'You can get app from ICommand :: OnCreate() hook parameter
    Dim editorUid As UID=New UIDClass()
    editorUid.Value="esriEditor.Editor"
    Dim editor As IEditor=TryCast(app.FindExtensionByCLSID(editorUid), IEditor)

    Dim dimUid As UID=New UIDClass()
    dimUid.Value="esriEditorExt.DimensionEditExtension"
    Dim dimEditExt As IDimensionEditExtension=TryCast(editor.FindExtension(dimUid), IDimensionEditExtension)
  End Sub