2024 Method
Changes 2
M

Rebar.RebarShapeMatchesCurvesAndHooks

Description:
Checks if rebarShape matches curves and hooks. If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, then this method will ignore the hook information.
public static bool RebarShapeMatchesCurvesAndHooks(
	RebarShape rebarShape,
	RebarBarType barType,
	XYZ norm,
	IList<Curve> curves,
	RebarHookType startHook,
	RebarHookType endHook,
	RebarHookOrientation startHookOrient,
	RebarHookOrientation endHookOrient
)
  • rebarShape
    A RebarShape element that defines the shape of the rebar.
  • barType
    A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
  • norm
    The normal to the plane that the rebar curves lie on.
  • IList<Curve>
    curves
    An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
  • startHook
    A RebarHookType element that defines the hook for the start of the bar.
  • endHook
    A RebarHookType element that defines the hook for the end of the bar.
  • startHookOrient
    Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
  • endHookOrient
    Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
Return Value bool True if rebarShape matches curves and hooks.