RVTDocs.com
Namespace: Autodesk.Revit.DB Class: FamilyManager

FamilyManager.RemoveParameter

Method
Description:
Remove an existing family parameter from the family.
Remarks:
Only family and shared parameters may be removed, built-in parameters may not be removed. If the parameter is used in any formulas, those formulas will be automatically removed along with the parameter.
Syntax
public void RemoveParameter(
	FamilyParameter familyParameter
)
Parameters
Parameter Type Description
familyParameter FamilyParameter The family parameter.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when the input argument-"familyParameter"-is.
ArgumentException Thrown when the input argument-"familyParameter"-is an invalid parameter or a builtIn parameter.
InvalidOperationException Thrown when the family parameter deletion failed.