Table of Contents

Method ToAcadXline

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToAcadXline(GeoXLine3)

Converts a GeometryHelper line without ends in space to an AutoCAD Xline.

public static Xline ToAcadXline(this GeoXLine3 geoXLine)

Parameters

geoXLine GeoXLine3

The GeometryHelper line to convert.

Returns

Xline

The converted AutoCAD Autodesk.AutoCAD.DatabaseServices.Xline, its base point the line's origin and its unit direction the line's.

Exceptions

ArgumentException

Thrown when the line has no direction, as a default one has, or holds a number that is not finite.

ToAcadXline(IEnumerable<GeoXLine3>)

Converts a sequence of GeometryHelper lines without ends in space to a list of AutoCAD Xlines.

public static List<Xline> ToAcadXline(this IEnumerable<GeoXLine3> xlines)

Parameters

xlines IEnumerable<GeoXLine3>

The sequence of GeometryHelper lines to convert.

Returns

List<Xline>

A list of converted AutoCAD Autodesk.AutoCAD.DatabaseServices.Xline.