ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcBuilderEx Class / EllipticArcBuilderEx Constructor / EllipticArcBuilderEx Constructor(EllipticArcSegment,SpatialReference)
The elliptic arc segment.
(Optional) The spatial reference. The default value is null. The spatial reference of the input segment is ignored.
Example

In This Topic
    EllipticArcBuilderEx Constructor(EllipticArcSegment,SpatialReference)
    In This Topic
    Creates a new instance of the EllipticArcBuilderEx class from another elliptic arc segment.
    Syntax
    Public Function New( _
       ByVal ellipticArc As EllipticArcSegment, _
       Optional ByVal spatialReference As SpatialReference _
    )

    Parameters

    ellipticArc
    The elliptic arc segment.
    spatialReference
    (Optional) The spatial reference. The default value is null. The spatial reference of the input segment is ignored.
    Exceptions
    ExceptionDescription
    ellipticArc is null.
    Example
    Elliptic Arc Builder Properties
    // retrieve the curve's properties
    EllipticArcBuilderEx builder = new EllipticArcBuilderEx(arcSegment);
    MapPoint startPt = builder.StartPoint;
    MapPoint endPt = builder.EndPoint;
    Coordinate2D centerPt = builder.CenterPoint;
    bool isCircular = builder.IsCircular;
    bool isMinor = builder.IsMinor;
    double startAngle = builder.StartAngle;
    double endAngle = builder.EndAngle;
    double centralAngle = builder.CentralAngle;
    double rotationAngle = builder.RotationAngle;
    ArcOrientation orientation = builder.Orientation;
    
    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