Revit 2025 API
RebarSet |
Set the id of the RebarHookType to be applied to the rebar.
If an EndTreatmentType is present at the rebar end, it will automatically set to invalidElementId.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetHookTypeId( int end, ElementId hookTypeId )
Public Sub SetHookTypeId ( end As Integer, hookTypeId As ElementId )
public: void SetHookTypeId( int end, ElementId^ hookTypeId )
member SetHookTypeId : end : int * hookTypeId : ElementId -> unit
Parameters

Exception | Condition |
---|---|
ArgumentException | the rebar hook type id hookTypeId is not valid |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | end must be 0 or 1. |
See Also