Table of Contents

Method ToGeoArc2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoArc2(Arc)

Converts an AutoCAD Arc to a GeometryHelper 2D arc, as it is seen in plan.

public static GeoArc2 ToGeoArc2(this Arc arc)

Parameters

arc Arc

The AutoCAD Arc to convert.

Returns

GeoArc2

The converted GeoArc2, running the way the arc is drawn.

Remarks

The arc has to lie in a plane parallel to XY, because a tilted one is an ellipse in plan and this gives an arc rather than an approximation of one. ToGeoArc3(Arc) reads any arc.

Exceptions

ArgumentNullException

Thrown when arc is null.

ArgumentException

Thrown when the arc is tilted out of the XY plane, or sweeps a whole turn.

ToGeoArc2(IEnumerable<Arc>)

Converts a sequence of AutoCAD Arcs to a list of GeometryHelper 2D arcs.

public static List<GeoArc2> ToGeoArc2(this IEnumerable<Arc> arcs)

Parameters

arcs IEnumerable<Arc>

The sequence of AutoCAD Arcs to convert.

Returns

List<GeoArc2>

A list of converted GeoArc2.