Note: This API is now obsolete.
[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please create a new shape using RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int higherEnd, RebarShapeTerminationsData rebarShapeTerminationsData) instead.")]
public void SetEndTreatmentTypeId(
ElementId endTreatmentId,
int end
)| Exception | Condition |
|---|---|
| ArgumentException | end not a valid shape end -or- the parameter endTreatmentId is not an EndTreatmentType element. |
| ArgumentNullException | A non-optional argument was null |