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.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2009
Syntax
C# |
---|
public void SetHookTypeId(
int end,
ElementId hookTypeId
) |
Visual Basic |
---|
Public Sub SetHookTypeId ( _
end As Integer, _
hookTypeId As ElementId _
) |
Visual C++ |
---|
public:
void SetHookTypeId(
int end,
ElementId^ hookTypeId
) |
Parameters
- end
- Type: System..::..Int32
0 for the start hook, 1 for the end hook.
- hookTypeId
- Type: Autodesk.Revit.DB..::..ElementId
The id of a RebarHookType element, or invalidElementId if
the rebar should have no hook at the specified end.
Exceptions
See Also