Hi. I'm working on migrating a ArcMap Toolbox from VB .NET (ArcObjects) to an ArcGIS Pro Add-In (ArcGIS Pro SDK). In the old code checks some polylines if the line is a "simple line" or if it's a circular arc. If it's a circular arc, I need to get the radius of the arc. In ArcObjects we converted the linesegment into ICircularArc and in this class there's a property for radius. I'm not able to find a similar property in ArcGIS Pro SDK, neither in CircularArc, EllipticArc nor EllipticArcSegment.
How do I calculate or find the radius for a CircularArc?
Hi,
You can use code below:
double resultRadius = 0;
if (circularArc.IsCircular)
{
resultRadius = Math.Abs(circularArc.SemiMajorAxis);
}