RebarShapeSetHookRotationAngle Method

Note: This API is now obsolete.

Sets the termination's (e.g hook, crank) out of plane rotation angle at the specified end. The angle will be used for both hook and crank.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please create a new shape using RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int higherEnd, RebarShapeTerminationsData rebarShapeTerminationsData) instead.")]
public void SetHookRotationAngle(
	double rotationAngle,
	int end
)

Parameters

rotationAngle  Double
The out of plane rotation angle at the specified end. The angle will be used for both hook and crank.
end  Int32
0 for the start, 1 for the end.
Exceptions
ExceptionCondition
ArgumentException The given value for rotationAngle is not finite
ArgumentOutOfRangeException end must be 0 or 1.
See Also