Checks that the hook angle of the specified RebarHookType matches the hook angle used in the Rebar's RebarShape at the specified end of the bar.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public bool HookAngleMatchesRebarShapeDefinition( int end, ElementId proposedHookId )
Parameters
- end Int32
- 0 for the start hook, 1 for the end hook.
- proposedHookId ElementId
- The Id of the RebarHookType
Return Value
BooleanReturns true if the hook angle of the RebarHookType matches the angle used in the RebarShape at the specified end of the bar.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | end must be 0 or 1. |