GetHookPlaneNormalForBarIdx Method


Returns the normal of plane in which the hook at end of bar with index barPositionIndex that is currently in Rebar.

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

Syntax

C#
public XYZ GetHookPlaneNormalForBarIdx(
	int end,
	int barPositionIndex
)
Visual Basic
Public Function GetHookPlaneNormalForBarIdx ( _
	end As Integer, _
	barPositionIndex As Integer _
) As XYZ
Visual C++
public:
XYZ^ GetHookPlaneNormalForBarIdx(
	int end, 
	int barPositionIndex
)

Parameters

end
Type: SystemInt32
The end of bar. Should be 0 for start or 1 for end.
barPositionIndex
Type: SystemInt32
An index between 0 and (GetNumberOfBars()-1).

Return Value

The normal of plane in which the hook at end of bar with index barPositionIndex that is currently in Rebar.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException barPositionIndex is not in the range [ 0, GetNumberOfBars()-1 ]. -or- Invalid end.

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 →