Revit 2026 API
Rebar |
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 )
<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 Sub SetHookRotationAngle ( rotationAngle As Double, end As Integer )
public: [ObsoleteAttribute(L"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.")] void SetHookRotationAngle( double rotationAngle, int end )
[<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.")>] member SetHookRotationAngle : rotationAngle : float * end : int -> unit
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.

Exception | Condition |
---|---|
ArgumentException | The given value for rotationAngle is not finite |
ArgumentOutOfRangeException | end must be 0 or 1. |
See Also