GetDefaultHookOrientation Method


Get the hook orientation.

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

Syntax

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

Parameters

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

Remarks

Replaces the method GetHookOrientation() from prior releases.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentOutOfRangeException index must be 0 or 1.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →