ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.COGO Namespace / Traverse Class / Export Method
The export options. See TraverseExportOptions.
Example

In This Topic
    Export Method (Traverse)
    In This Topic
    Exports the traverse to the ArcMap Traverse file format. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub Export( _
       ByVal options As TraverseExportOptions _
    ) 
    public void Export( 
       TraverseExportOptions options
    )

    Parameters

    options
    The export options. See TraverseExportOptions.
    Exceptions
    ExceptionDescription
    Options or TraverseExportOptions.OutputFileName is null.
    The traverse file could not be saved.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Export a traverse to a file
    var directionDecimalPlaces = 0;
    var distanceDecimalPlaces = 3;
    var exportOptions = new TraverseExportOptions("C:\\MyTraverseFileFolder\\MyTraverseFile.txt", 
                                  ArcGIS.Core.CIM.DirectionType.QuadrantBearing,
                                  ArcGIS.Core.CIM.DirectionUnits.DegreesMinutesSeconds, 
                                  directionDecimalPlaces, distanceDecimalPlaces);
    travParcel.Export(exportOptions);
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also