RebarComputeSpacingsBetweenBars Method |
Computes the spacings between all bars as we would have a set with CustomSpacing layout, the customSpacingFormula and its length being distributionLength.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic static IList<double> ComputeSpacingsBetweenBars(
Document document,
string customSpacingFormula,
double distributionLength
)
Public Shared Function ComputeSpacingsBetweenBars (
document As Document,
customSpacingFormula As String,
distributionLength As Double
) As IList(Of Double)
public:
static IList<double>^ ComputeSpacingsBetweenBars(
Document^ document,
String^ customSpacingFormula,
double distributionLength
)
static member ComputeSpacingsBetweenBars :
document : Document *
customSpacingFormula : string *
distributionLength : float -> IList<float> Parameters
- document Document
-
A document.
- customSpacingFormula String
-
The formula to be used to compute spacings.
- distributionLength Double
-
The length along which the bars will be distributed.
This length will be used only if the formula contains "?" or percentages.
Return Value
IListDouble
Returns the spacings between all bars in set.
If the bars doesn't fit in the input distributionLength, the returned array will be empty.
Exceptions
See Also