Method ToTeklaPolyLine
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToTeklaPolyLine(GeoPolyline3)
Converts a GeometryHelper chain to a Tekla polyline.
public static PolyLine ToTeklaPolyLine(this GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3The chain to convert.
Returns
- PolyLine
The converted Tekla polyline.
Exceptions
- ArgumentNullException
Thrown when
polylineis null.
ToTeklaPolyLine(GeoPolylineArc3, double)
Converts a chain that may curve to a Tekla polyline, following its arcs to a given accuracy.
public static PolyLine ToTeklaPolyLine(this GeoPolylineArc3 chain, double chordTolerance)
Parameters
chainGeoPolylineArc3The chain to convert.
chordTolerancedoubleHow far the straight pieces may fall inside an arc.
Returns
- PolyLine
The converted Tekla polyline.
Remarks
A Tekla polyline holds points and no bulges, so a curve cannot survive the trip. The accuracy sits in the call rather than being chosen here, which is the same bargain ToPolyline3(double) offers.
Exceptions
- ArgumentNullException
Thrown when
chainis null.