GetTargetRebarHookBarEnd Method


Rebar Constraint Get Target Rebar Hook Bar End Method

Returns 0 or 1 to indicate which end hook on the other Rebar Element to which this RebarConstraint is attached. The RebarConstraint must be of RebarConstraintType 'ToOtherRebar,' and the TargetRebarConstraintType must be 'HookBend'. Rebar must be Shape Driven Rebar element.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public int GetTargetRebarHookBarEnd()

Return Value

Int32
Returns 0 or 1 to indicate which end hook on the other Rebar Element to which this RebarConstraint is attached.
Exceptions
Exception Condition
InvalidOperationException RebarConstraint is no longer valid. -or- The RebarConstraint is not of RebarConstraintType 'ToOtherRebar'. -or- The TargetRebarConstraintType is not 'HookBend' -or- Constrained rebar isn't a Shape Driven Rebar element.
Remarks
0 means start of the bar, and 1 indicates end of the bar.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →