A chain of curves representing the centerline of the rebar.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public IList<Curve> GetTransformedCenterlineCurves( bool adjustForSelfIntersection, bool suppressHooks, bool suppressBendRadius, int barPositionIndex )
Parameters
- adjustForSelfIntersection Boolean
- If the curves overlap, as in a planar stirrup, this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views).
- suppressHooks Boolean
- Identifies if the chain will include hooks curves.
- suppressBendRadius Boolean
- Identifies if the connected chain will include unfilleted curves.
- barPositionIndex Int32
- The bar index.
Return Value
IList<Curve>The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ]. |