Rebar.ComputeSpacingsBetweenBars
Description:
Computes the spacings between all bars as we would have a set with CustomSpacing layout, the customSpacingFormula and its length being distributionLength.
Computes the spacings between all bars as we would have a set with CustomSpacing layout, the customSpacingFormula and its length being distributionLength.
public static IList<double> ComputeSpacingsBetweenBars(
Document document,
string customSpacingFormula,
double distributionLength
)
-
documentA document.
-
StringcustomSpacingFormulaThe formula to be used to compute spacings.
-
DoubledistributionLengthThe length along which the bars will be distributed. This length will be used only if the formula contains "?" or percentages.
Return Value
IList<Double>
Returns the spacings between all bars in set.
If the bars doesn't fit in the input distributionLength, the returned array will be empty.
-
The specified formula is not valid (doesn't have a valid syntax).
-
A non-optional argument was null
-
The given value for distributionLength must be positive.