RebarShape.RebarShapeMatchesCurvesAndTerminationsData
Description:
Checks if rebarShape matches curves and terminations data. If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, then this method will ignore the hook information.
Checks if rebarShape matches curves and terminations data. If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, then this method will ignore the hook information.
public static bool RebarShapeMatchesCurvesAndTerminationsData(
RebarShape rebarShape,
RebarBarType barType,
XYZ norm,
IList<Curve> curves,
RebarShapeTerminationsData rebarShapeTerminationsData
)
-
rebarShapeA RebarShape element that defines the shape of the rebar.
-
barTypeA RebarBarType element that defines bar diameter, bend radius and material of the rebar.
-
normThe normal to the plane that the rebar curves lie on.
-
IList<Curve>curvesAn array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends, hooks and cranks should not be included in the array of curves.
-
rebarShapeTerminationsDataData about the Rebar Shape's terminations.
-
The input curves is empty. -or- The input curves contains at least one curve which is not a bound Line or bound Arc and is not supported for this operation. -or- curves do not form a valid CurveLoop. -or- The input curves contains at least one helical curve and is not supported for this operation. -or- The rebarShapeTerminationsData was not created using the rebarShape's document. -or- The rebarShapeTerminationsData was not created using the barType's document.
-
A non-optional argument was null
-
norm has zero length.