ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.COGO Namespace / COGOLineBuilder Class / CreateCOGOStraightLineByClockwiseDeflectionAngle Method
An angle deflection value in decimal degrees.
Is the angle deflection based off a backsight.
Distance value.
Example

In This Topic
    CreateCOGOStraightLineByClockwiseDeflectionAngle Method
    In This Topic
    Creates a straight COGOLine for use in a Traverse. The line is specified using an angle relative to a previous course and a distance.
    Syntax
    Public Shared Function CreateCOGOStraightLineByClockwiseDeflectionAngle( _
       ByVal angle As Double, _
       ByVal fromBacksight As Boolean, _
       ByVal distance As Double _
    ) As COGOLine
    public static COGOLine CreateCOGOStraightLineByClockwiseDeflectionAngle( 
       double angle,
       bool fromBacksight,
       double distance
    )

    Parameters

    angle
    An angle deflection value in decimal degrees.
    fromBacksight
    Is the angle deflection based off a backsight.
    distance
    Distance value.

    Return Value

    Exceptions
    ExceptionDescription
    angle cannot be NaN.
    distance cannot be NaN or 0.
    Example
    Create a COGOLine defined by deflection angle and distance
    // Clockwise deflection angle 90 degrees, 50.00
    var deflectionLine = COGOLineBuilder.CreateCOGOStraightLineByClockwiseDeflectionAngle(90.0, false, 50.00);
    
    //Clockwise backsight deflection angle 270 degrees, 50.00'
    var backSightDeflectionLine = COGOLineBuilder.CreateCOGOStraightLineByClockwiseDeflectionAngle(270.0, true, 50.00);
    Create a Traverse
    List<COGOLine> lstCOGOLines = new();
    var direction = ParcelUtilities.Instance.ConvertQuadrantBearingDMSToNorthAzimuthDecDeg("S7-46-51-E");
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOStraightLine(nAzDirection, 61.45)); //1
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOStraightLine(166.2625, 37.22));//2
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOStraightLine(255.2833333, 71.4));//3
    var circArcDef = new CircularArcDefinition
    {
      Radius = -201.0,
      ArcLength = 45.29,
      ChordDirection = ParcelUtilities.Instance.ConvertQuadrantBearingDMSToNorthAzimuthDecDeg("N21-47-57W")
    };
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOCircularArc(circArcDef));//4
    var tangentCurveDef = new TangentCurveDefinition
    {
      Radius = 169.0,
      ArcLength = 52.40
    };
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOCircularArc(tangentCurveDef));//5
    
    tangentCurveDef = new TangentCurveDefinition
    {
      Radius = 13.0,
      ArcLength = 22.98
    };
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOCircularArc(tangentCurveDef));//6
    
    tangentCurveDef = new TangentCurveDefinition
    {
      Radius = -281.0,
      ArcLength = 73.68
    };
    lstCOGOLines.Add(COGOLineBuilder.CreateCOGOCircularArc(tangentCurveDef));//7
    
    var spatialReference = map?.SpatialReference;
    var travParcel = new Traverse(spatialReference);
    await travParcel.AddCoursesAsync(lstCOGOLines);
    if (travParcel.IsValid())
    {
      ; //insert code to use the traverse
    }
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also