ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcBuilderEx Class / EllipticArcBuilderEx Constructor / EllipticArcBuilderEx Constructor(Segment,Boolean,ArcOrientation,Double,Double,SpatialReference)
The segment to which the constructed arc will be tangent at its start or end point.
The boolean indicating if the arc should be constructed at the start or end of the tangent segment.
The value indicating if the arc is oriented clockwise or counterclockwise.
The radius of the arc. Must not be NaN or equal to zero. If the radius is < 0, then the absolute value is used.
The length of the arc. Must not be NaN or equal to zero. If the arcLength is < 0, then the absolute value is used.
(Optional) The spatial reference of the arc. The default value is null.
Example

In This Topic
    EllipticArcBuilderEx Constructor(Segment,Boolean,ArcOrientation,Double,Double,SpatialReference)
    In This Topic
    Creates a new instance of the EllipticArcBuilderEx class. The new instance will be a circular arc.
    Syntax

    Parameters

    tangentSegment
    The segment to which the constructed arc will be tangent at its start or end point.
    atStart
    The boolean indicating if the arc should be constructed at the start or end of the tangent segment.
    orientation
    The value indicating if the arc is oriented clockwise or counterclockwise.
    radius
    The radius of the arc. Must not be NaN or equal to zero. If the radius is < 0, then the absolute value is used.
    arcLength
    The length of the arc. Must not be NaN or equal to zero. If the arcLength is < 0, then the absolute value is used.
    spatialReference
    (Optional) The spatial reference of the arc. The default value is null.
    Exceptions
    ExceptionDescription
    The tangent segment is null.
    The radius or arc length is equal to zero.
    The radius or arc length is NaN.
    Remarks

    Elliptic Arc Constructor

    Example
    Create Ellipse Text Element
    {
      //Note: Must be on QueuedTask.Run
    
      //Build geometry
      Coordinate2D center = new Coordinate2D(4.5, 2.75);
      var eabElp = new EllipticArcBuilderEx(center, 0, 1, 0.45, ArcOrientation.ArcClockwise);
      var ellipse = eabElp.ToSegment();
    
      var poly = PolygonBuilderEx.CreatePolygon(
        PolylineBuilderEx.CreatePolyline(ellipse, AttributeFlags.AllAttributes));
    
      //Set symbology, create and add element to layout
      CIMTextSymbol sym = SymbolFactory.Instance.ConstructTextSymbol(
                            ColorFactory.Instance.BlueRGB, 10, "Arial", "Regular");
      string text = "Ellipse, ellipse, ellipse";
    
      GraphicElement ge = ElementFactory.Instance.CreateTextGraphicElement(
        layout, TextType.PolygonParagraph, poly, sym, text, "New Ellipse Text", false);
    }
    Create Predefined Shape Graphic Element 3
    {
      //Note: Must be on QueuedTask.Run
    
      //Build geometry
      Coordinate2D center = new Coordinate2D(2, 2.75);
      var eabElp = new EllipticArcBuilderEx(
                               center, 0, 1, 0.45, ArcOrientation.ArcClockwise);
      var ellipse = eabElp.ToSegment();
    
      //Set symbology, create and add element to layout
      CIMStroke outline = SymbolFactory.Instance.ConstructStroke(
                            ColorFactory.Instance.GreenRGB, 2.0, SimpleLineStyle.Dot);
      CIMPolygonSymbol ellipseSym = SymbolFactory.Instance.ConstructPolygonSymbol(
                       ColorFactory.Instance.GreyRGB, SimpleFillStyle.Vertical, outline);
    
      var poly = PolygonBuilderEx.CreatePolygon(
        PolylineBuilderEx.CreatePolyline(ellipse, AttributeFlags.AllAttributes));
    
      var ge = ElementFactory.Instance.CreatePredefinedShapeGraphicElement(
        layout, PredefinedShape.Ellipse, poly.Extent.Center, 0, 0, ellipseSym,
        "New Ellipse2", false, new ElementInfo() { Anchor = Anchor.TopRightCorner });
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also