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

In This Topic
    Import Method (Traverse)
    In This Topic
    Imports an ArcMap traverse file and creates a Traverse. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Shared Function Import( _
       ByVal inputFilePath As String, _
       ByVal sr As SpatialReference _
    ) As Traverse
    public static Traverse Import( 
       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.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also