Rebar.SplitRebar
Description:
Splits a rebar into multiple sets at specified bar indices. Given split indices (e.g., {ii, jj}) in barIndices, the function creates three rebar sets: from 0 to ii, ii+1 to jj, and jj+1 to NumberOfBarPositions - 1.
Splits a rebar into multiple sets at specified bar indices. Given split indices (e.g., {ii, jj}) in barIndices, the function creates three rebar sets: from 0 to ii, ii+1 to jj, and jj+1 to NumberOfBarPositions - 1.
-
documentThe document.
-
rebarToSplitThe rebar that will be split
-
ISet<Int32>barIndicesThe array storing the indices of the initial bars from the rebar where the splits will occur.
-
BooleanconstrainSplitSetsIf this is true, Rebar Plane of the split set with index ii in the output array will be constrained to Out of Plane of the set split set with index ii-1 in the output array (or Rebar Plane if the layout is Single). If it is false, it will be no constraint between the resulted sets. This parameter has no effect for 3D Path free form rebars.
-
BooleansplitAllSetsInSpliceChainIf this is true, all sets in the splice chain will be split and the splice relationships will be maintained. If it is false, only the selected set will be split and no splice relationship will be preserved. This parameter has no effect for 3D Path free form rebars.
-
Free Form Rebars other than 3D Path or Morphed, rebar sets with only one bar included or rebars that are part of a group can't be split. Morphed Free Form Rebars that targets Spiral or Lapped Circle shapes can't be split.
-
A non-optional argument was null
-
One or more bar indices are invalid. All indices must be within the range of [0, NumberOfBarPositions - 2]. For 3D Path Free Form Rebar, the indices must not be consecutive and each new set created by the split must intersect at least one path edge. For Morphed Free Form Rebar, the indices must not be consecutive.