This document is archived and information here might be outdated. Recommended version. |
Dialog for creating traverses.
Interfaces | Description |
---|---|
IExtension (esriSystem) | Provides access to members that define an extension. |
ITraverseWindow | Provides access to members that interact with the Traverse Window dialog. |
ITraverseWindow2 | Provides access to members that interact with the Traverse Window dialog. |
ITraverseWindowEvents | Provides access to Traverse Window events. Implement it to listen to specific events that occur when the Traverse Window is used. |
The TraverseWindow is used to work with features created with Coordinate Geometry (COGO) descriptions. The TraverseWindow is an editor extension; use IEditor::FindExtension to obtain a reference to it.
The following code snippet illustrates how to obtain a reference to the TraverseWindow.
public void GetTraverseWindowByCLSID()
{
//You can get app from ICommand :: OnCreate() hook parameter
UID editorUid = new UIDClass();
editorUid.Value = "esriEditor.Editor";
IEditor editor = app.FindExtensionByCLSID(editorUid) as IEditor;
//Get a reference to the traverse window
UID extUid = new UIDClass();
extUid.Value = "esriEditor.TraverseWindow";
ITraverseWindow traverseWindow = editor.FindExtension(extUid) as ITraverseWindow;
}
The following code snippet illustrates how to obtain a reference to the TraverseWindow.
Public Sub GetTraverseWindowByCLSID()
'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)
'Get a reference to the traverse window
Dim extUid As UID = New UIDClass()
extUid.Value = "esriEditor.TraverseWindow"
Dim traverseWindow As ITraverseWindow = TryCast(editor.FindExtension(extUid), ITraverseWindow)
End Sub