Table of Contents

Method ToGeoLine2

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

ToGeoLine2(LineSegment)

Converts a Tekla line segment to a GeometryHelper 2D line segment.

public static GeoLine2 ToGeoLine2(this LineSegment segment)

Parameters

segment LineSegment

The Tekla line segment to convert.

Returns

GeoLine2

The converted GeoLine2.

Exceptions

ArgumentNullException

Thrown when segment is null.

ToGeoLine2(IEnumerable<LineSegment>)

Converts a sequence of Tekla line segments to a list of GeometryHelper 2D line segments.

public static List<GeoLine2> ToGeoLine2(this IEnumerable<LineSegment> segments)

Parameters

segments IEnumerable<LineSegment>

The sequence of Tekla line segments to convert.

Returns

List<GeoLine2>

A list of converted GeoLine2.