Rebar.SetEndTreatmentTypeId
Description:
Sets the id of the EndTreatmentType to be applied to the rebar. This can be done if and only if the end of the bar on which the end treatment is applied has no RebarCoupler on it, otherwise will throw an exception.
Sets the id of the EndTreatmentType to be applied to the rebar. This can be done if and only if the end of the bar on which the end treatment is applied has no RebarCoupler on it, otherwise will throw an exception.
public void SetEndTreatmentTypeId(
int end,
ElementId endTreatmentTypeId
)
-
the parameter endTreatmentTypeId is not an EndTreatmentType element.
-
A non-optional argument was null
-
end must be 0 or 1.
-
the Rebar end end has a RebarCoupler on it.