RVTDocs.com

Rebar.SetHookTypeId

Method
Description:
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.
Syntax
public void SetHookTypeId(
	int end,
	ElementId hookTypeId
)
Parameters
Parameter Type Description
end Int32 0 for the start hook, 1 for the end hook.
hookTypeId ElementId The id of a RebarHookType element, or invalidElementId if the rebar should have no hook at the specified end.
Return Value
Exceptions
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.