GetDefaultHookAngle Method


Get the hook angle, expressed as an integral number of degrees (common values are 0, 90, 135, and 180).

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2014

Syntax

C#
public int GetDefaultHookAngle(
	int index
)
Visual Basic
Public Function GetDefaultHookAngle ( _
	index As Integer _
) As Integer
Visual C++
public:
int GetDefaultHookAngle(
	int index
)

Parameters

index
Type: SystemInt32
0 for the starting hook, 1 for the ending hook.

Remarks

Replaces the method GetHookAngle() from prior releases.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException index must be 0 or 1.

See Also