2021 Method
Changes 5
M

FamilyManager.ReplaceParameter

Description:
Replace a family parameter with a shared parameter.
Remarks:
This operation is invalid for Built-in Parameters. The formulas and labels which in reference to this parameter will be updated to the new parameter.
Overloads (2):
ReplaceParameter(FamilyParameter,ExternalDefinition,BuiltInParameterGroup,Boolean)
public FamilyParameter ReplaceParameter(
	FamilyParameter currentParameter,
	ExternalDefinition familyDefinition,
	BuiltInParameterGroup parameterGroup,
	bool isInstance
)
Return Value FamilyParameter If replacement was successful the new shared parameter is returned, otherwise an exception with failure information will be thrown.