ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.COGO Namespace / Course Class / COGOLine Property
Example

In This Topic
    COGOLine Property
    In This Topic
    Gets the COGOLine for this course.
    Syntax
    Public ReadOnly Property COGOLine As COGOLine
    public COGOLine COGOLine {get;}
    Example
    Iterate Traverse Courses
    // iterate thru courses
    foreach (var course in travParcel.Courses)
    {
      var courseCOGOLine = course.COGOLine;
    
      var entranceTangentDir = course.EntranceTangentDirection;
      var exitTangentDir = course.ExitTangentDirection;
    
      // tangent to prior course if one of the following
      //     - defined with a ArcGIS.Desktop.Editing.COGO.TangentCurveDefinition
      //     - defined as a straight line defined with a 0 deflection angle.
      var isTangentToPriorCourse = course.IsDefinedAsTangentToPriorCourse;
      // IsTangent if one of the following
      //    - IsTangentToPriorCourse
      //    - is implied tangent - ie difference between entranceTangentDirection and previous courses ExitTangentDirection < tolerance
      var isTangent = course.IsTangent;
    }
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also