EndTreatmentType.Create(Document, String)
Method
Description:
Creates a new EndTreatmentType in a document and adds the input string to the endTreatment parameter.
Creates a new EndTreatmentType in a document and adds the input string to the endTreatment parameter.
Examples
private void NewEndTreatmentForCouplerType(Document doc, ElementId couplerTypeId)
{
EndTreatmentType treatmentType = EndTreatmentType.Create(doc, "Custom");
FamilySymbol couplerType = doc.GetElement(couplerTypeId) as FamilySymbol;
Parameter param = couplerType.get_Parameter(BuiltInParameter.COUPLER_MAIN_ENDTREATMENT);
param.Set(treatmentType.Id);
}
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |