This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control dimension feature editing.
Name | Description | |
---|---|---|
CreateStyleID | The style id of newly created dimension features. | |
CurrentConstructor | The currently selected dimension constructor. | |
DimensionConstructors | The dimension constructors for creating new dimensions. | |
Editor | The editor application extension. | |
IsDimensionTarget | Indicates if a dimension feature class is the current editor target. |
Classes | Description |
---|---|
DimensionEditExtension | An editor extension for creating and editing dimension features. |
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;
}
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