RebarShapeDefinition.CheckDefaultParameterValues
Description:
Check that the shape can be solved with the default parameter values.
Check that the shape can be solved with the default parameter values.
Remarks:
This function runs the rebar solver with the default parameter values. If it fails (returns false), rebar instances of this shape will not work. This may be from the default parameters being inconsistent, or from some error in the shape definition. The solver requires a specific bend radius and bar diameter, and the result depends on these values, but in practice they usually do not affect the result of this function as long as they are small. It is legal to pass 0.0 for both arguments. The definition must be Complete in order for this function to succeed.
This function runs the rebar solver with the default parameter values. If it fails (returns false), rebar instances of this shape will not work. This may be from the default parameters being inconsistent, or from some error in the shape definition. The solver requires a specific bend radius and bar diameter, and the result depends on these values, but in practice they usually do not affect the result of this function as long as they are small. It is legal to pass 0.0 for both arguments. The definition must be Complete in order for this function to succeed.
public bool CheckDefaultParameterValues(
double bendRadius,
double barDiameter
)
-
DoublebendRadiusA value for the Bend Radius parameter. Zero is allowed.
-
DoublebarDiameterA value for the Bar Diameter parameter. Zero is allowed.
Return Value
Boolean
True if the rebar can be solved with the
default parameter values and the given bend radius and
bar diameter; false if it cannot.