ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcBuilderEx Class / CreateEllipticArcSegment Method / CreateEllipticArcSegment(EllipticArcSegment,SpatialReference) Method
The elliptic arc segment.
(Optional) The spatial reference. If spatialReference is null, then the spatial reference is inherited from ellipticArc.
Example

In This Topic
    CreateEllipticArcSegment(EllipticArcSegment,SpatialReference) Method
    In This Topic
    Convenience method to create a new instance of the EllipticArcSegment class from another elliptic arc segment.
    Syntax
    Public Overloads Shared Function CreateEllipticArcSegment( _
       ByVal ellipticArc As EllipticArcSegment, _
       Optional ByVal spatialReference As SpatialReference _
    ) As EllipticArcSegment

    Parameters

    ellipticArc
    The elliptic arc segment.
    spatialReference
    (Optional) The spatial reference. If spatialReference is null, then the spatial reference is inherited from ellipticArc.

    Return Value

    Exceptions
    ExceptionDescription
    ellipticArc is null.
    Example
    Elliptic Arc Properties
    {
      // retrieve the curve's control points
      EllipticArcSegment arc = EllipticArcBuilderEx.CreateEllipticArcSegment(ellipticArcSegment);
      MapPoint startPt = arc.StartPoint;
      MapPoint endPt = arc.EndPoint;
      Coordinate2D centerPt = arc.CenterPoint;
      bool isCircular = arc.IsCircular;
      bool isMinor = arc.IsMinor;
      bool isCounterClockwise = arc.IsCounterClockwise;
      bool isCurve = arc.IsCurve;
      double len = arc.Length;
      double ratio = arc.MinorMajorRatio;
    
      double semiMajorAxis, semiMinorAxis;
      // get the axes
      arc.GetAxes(out semiMajorAxis, out semiMinorAxis);
      // or use the properties
      // semiMajorAxis = arc.SemiMajorAxis;
      // semiMinorAxis = arc.SemiMinorAxis;
    
      double startAngle, centralAngle, rotationAngle;
      // or use QueryCoords to get complete information
      arc.QueryCoords(out centerPt, out startAngle, out centralAngle, out rotationAngle, out semiMajorAxis, out semiMinorAxis);
    
      // use properties to get angle information
      //double endAngle = arc.EndAngle;
      //centralAngle = arc.CentralAngle;
      //rotationAngle = arc.RotationAngle;
      //startAngle = arc.StartAngle;
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also