Calculation of area and circumference of the circles

How to сalculation of area and circumference of the circles

Issue: How to сalculation of area and circumference of the circles (CADNET-1153).

Tips: To do this, get the radius from CadEntityTypeName.CIRCLE from the entities and use the formula “2 * Math.PI * radius”.

Example:

foreach (CadBaseEntity entity in cadImage.Entities)
{
if (entity.TypeName == CadEntityTypeName.CIRCLE)
{
double radius = ((CadCircle)entity).Radius;
System.Console.WriteLine("Circumference= " + 2 * Math.PI * radius);
System.Console.WriteLine("Area= " + Math.PI * radius * radius);
}
}