ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcBuilderEx Class / EllipticArcBuilderEx Constructor / EllipticArcBuilderEx Constructor(Double,Double,Coordinate2D,Double,SpatialReference)
The angle, measured from a horizontal line through the circular arc's center point, that defines where the arc starts.
The angle which describes the span of the circular arc.
The center point of the embedded circle.
The distance from the center of the embedded circle to the perimeter.
(Optional) The spatial reference of the arc. The default value is null.
Example

In This Topic
    EllipticArcBuilderEx Constructor(Double,Double,Coordinate2D,Double,SpatialReference)
    In This Topic
    Creates a new instance of the EllipticArcBuilderEx class. The new instance will be a circular arc.
    Syntax
    Public Function New( _
       ByVal startAngle As Double, _
       ByVal centralAngle As Double, _
       ByVal centerPt As Coordinate2D, _
       ByVal radius As Double, _
       Optional ByVal spatialReference As SpatialReference _
    )

    Parameters

    startAngle
    The angle, measured from a horizontal line through the circular arc's center point, that defines where the arc starts.
    centralAngle
    The angle which describes the span of the circular arc.
    centerPt
    The center point of the embedded circle.
    radius
    The distance from the center of the embedded circle to the perimeter.
    spatialReference
    (Optional) The spatial reference of the arc. The default value is null.
    Exceptions
    Example
    Construct a Circular Arc - using a center point, angle and radius
    // Construct a circular arc with center point at (0, 0), from angle = 0, 
    // central angle = pi/2, radius = 1.
    // Use a builderEx convenience method or use a builderEx constructor.
    
    SpatialReference sr4326 = SpatialReferences.WGS84;
    Coordinate2D centerPt = new Coordinate2D(0, 0);
    double fromAngle = 0;
    double centralAngle = Math.PI / 2;
    double radius = 1;
    
    // BuilderEx convenience methods don't need to run on the MCT.
    EllipticArcSegment circularArc = EllipticArcBuilderEx.CreateCircularArc(fromAngle, centralAngle, centerPt, radius, sr4326);
    
    // BuilderEx constructors don't need to run on the MCT.
    EllipticArcBuilderEx cab = new EllipticArcBuilderEx(fromAngle, centralAngle, centerPt, radius, sr4326);
    EllipticArcSegment otherCircularArc = cab.ToSegment();
    
    Create Circle Text Element
    //Must be on QueuedTask.Run(() => { ...
    
    //Build geometry
    Coordinate2D center = new Coordinate2D(4.5, 4);
    var eabCir = new EllipticArcBuilderEx(center, 0.5, ArcOrientation.ArcClockwise);
    var cir = eabCir.ToSegment();
    
    var poly = PolygonBuilderEx.CreatePolygon(
      PolylineBuilderEx.CreatePolyline(cir, AttributeFlags.AllAttributes));
    
    //Set symbolology, create and add element to layout
    CIMTextSymbol sym = SymbolFactory.Instance.ConstructTextSymbol(
                    ColorFactory.Instance.GreenRGB, 10, "Arial", "Regular");
    string text = "Circle, circle, circle";
    
    GraphicElement cirTxtElm = ElementFactory.Instance.CreateTextGraphicElement(
      container, TextType.CircleParagraph, poly, sym, text, "New Circle Text", false);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also