ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.COGO Namespace / Traverse Class / Adjust Method
The adjustment method to use.
Example

In This Topic
    Adjust Method
    In This Topic
    Performs an adjustment of the traverse using the specified adjustment method. Following the adjustment use AdjustmentResults to obtain the adjustment results. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    adjustmentMethod
    The adjustment method to use.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Cannot adjust this traverse with the provided parameters.
    Remarks
    Use CanAdjust to determine if the traverse is valid and can be adjusted with the specified method prior to calling this method.

    Example
    Traverse Adjustment
    if (travParcel.IsValid())
    {
      TraverseClosure travClosure = travParcel.GetClosure();
    
      if (travClosure.MiscloseDistance < 0.1)
      {
        if (travParcel.CanAdjust(TraverseAdjustmentMethod.Compass))
        {
          travParcel.Adjust(TraverseAdjustmentMethod.Compass);
    
          TraverseAdjustmentResults adjResults = travParcel.AdjustmentResults;
    
          var adjCoords = adjResults.AdjustedCoordinates;
          var adjustedCourses = adjResults.AdjustedCourses;
          var distanceResiduals = adjResults.DistanceResiduals;
          var directionResiduals = adjResults.DirectionalResiduals;
        }
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also