Table of Contents

Method ToGeoPolylineArc3s

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

ToGeoPolylineArc3s(Reinforcement)

Converts every bar of a reinforcement, as Tekla works them out.

public static GeoPolylineArc3[] ToGeoPolylineArc3s(this Reinforcement reinforcement)

Parameters

reinforcement Reinforcement

Returns

GeoPolylineArc3[]

ToGeoPolylineArc3s(Reinforcement, Tolerance)

Converts every bar of a reinforcement, as Tekla works them out, within a tolerance.

public static GeoPolylineArc3[] ToGeoPolylineArc3s(this Reinforcement reinforcement, Tolerance tolerance)

Parameters

reinforcement Reinforcement

The reinforcement: a single bar, any kind of group, a mesh or a strand.

tolerance Tolerance

The tolerance; Tekla coordinates run large, so this is worth giving.

Returns

GeoPolylineArc3[]

One bar for each geometry the reinforcement holds; a group gives one for every bar in it.

Remarks

A geometry that cannot be read as a bar is passed over rather than stopping the rest, and the number passed over is reported through GeometryHelperLog, because a group of forty bars with one bad geometry is more useful than an exception.

Exceptions

ArgumentNullException

Thrown when reinforcement is null.

InvalidOperationException

Thrown when Tekla Structures is not running, which it must be for this to be asked at all.

ToGeoPolylineArc3s(IEnumerable<Reinforcement>)

Converts the bars of each reinforcement given, as Tekla works them out.

public static List<GeoPolylineArc3[]> ToGeoPolylineArc3s(this IEnumerable<Reinforcement> reinforcements)

Parameters

reinforcements IEnumerable<Reinforcement>

Returns

List<GeoPolylineArc3[]>

ToGeoPolylineArc3s(IEnumerable<Reinforcement>, Tolerance)

Converts the bars of each reinforcement given, as Tekla works them out, within a tolerance.

public static List<GeoPolylineArc3[]> ToGeoPolylineArc3s(this IEnumerable<Reinforcement> reinforcements, Tolerance tolerance)

Parameters

reinforcements IEnumerable<Reinforcement>

The reinforcements, in any sequence; an array of them reads here too.

tolerance Tolerance

The tolerance.

Returns

List<GeoPolylineArc3[]>

One entry for each reinforcement given, in the same order, holding that one's bars. A null in the sequence gives an empty entry, so an answer always lines up with what was asked about.

Remarks

The grouping is kept rather than run together, because it cannot be got back: which bar came from which reinforcement is gone the moment they are all in one list. Running them together is a SelectMany away for anyone who wants that.

Worth using over a loop of single calls rather than only shorter to write: where a Tekla build needs the work plane turned to global first, this turns it once for the whole lot and puts it back once, instead of once per reinforcement.

Exceptions

ArgumentNullException

Thrown when the sequence is null.

ToGeoPolylineArc3s(RebarSet)

Converts every bar of every reinforcement of a rebar set, as Tekla works them out.

public static List<GeoPolylineArc3[]> ToGeoPolylineArc3s(this RebarSet set)

Parameters

set RebarSet

Returns

List<GeoPolylineArc3[]>

ToGeoPolylineArc3s(RebarSet, Tolerance)

Converts every bar of every reinforcement of a rebar set, as Tekla works them out, within a tolerance.

public static List<GeoPolylineArc3[]> ToGeoPolylineArc3s(this RebarSet set, Tolerance tolerance)

Parameters

set RebarSet

The rebar set.

tolerance Tolerance

The tolerance.

Returns

List<GeoPolylineArc3[]>

One entry for each reinforcement the set made, in the order they come back, holding that one's bars.

Remarks

A RebarSet is not a Reinforcement — it holds them, along with its modifiers and its leg faces — so it is asked for the reinforcements it made and each of those is read as usual.

Exceptions

ArgumentNullException

Thrown when set is null.