EndTreatmentType.Create
Description:
Creates a new EndTreatmentType in the specified document and adds the input string to the endTreatment parameter.
Creates a new EndTreatmentType in the specified document and adds the input string to the endTreatment parameter.
Overloads (2):
public static EndTreatmentType Create(
Document doc,
string treatment
)
-
docReturns the newly created EndTreatmentType in the specified document.
-
StringtreatmentThis string will be se to the endTreatment parameter.
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);
}
-
A non-optional argument was null