ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.COGO Namespace / Traverse Class / ImportAsync Method
The path and name of the input file.
The spatial Reference for the traverse.
Example

In This Topic
    ImportAsync Method
    In This Topic
    Imports an ArcMap traverse file and creates a Traverse.
    Syntax
    Public Shared Function ImportAsync( _
       ByVal inputFilePath As String, _
       ByVal sr As SpatialReference _
    ) As Task(Of Traverse)
    public static Task<Traverse> ImportAsync( 
       string inputFilePath,
       SpatialReference sr
    )

    Parameters

    inputFilePath
    The path and name of the input file.
    sr
    The spatial Reference for the traverse.

    Return Value

    Exceptions
    ExceptionDescription
    inputFilePath is not specified.
    inputFilePath does not exist.
    sr is null.
    There was an error importing the traverse.
    Example
    Import a traverse file
    var pathAndNameOfTraverseFile = "C:\\MyTraverseFileFolder\\MyTraverseFile.txt";
    var traverse = await Traverse.ImportAsync(pathAndNameOfTraverseFile, spatialReference);
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also