2027 Method
Changes 8
M

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.
public static IList<double> ComputeSpacingsBetweenBars(
	Document document,
	string customSpacingFormula,
	double distributionLength
)
  • document
    A document.
  • String
    customSpacingFormula
    The formula to be used to compute spacings.
  • Double
    distributionLength
    The 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.