2024 Method
Changes 8
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.
[ObsoleteAttribute("This method is deprecated in Revit 2024 and may be removed in a future version of Revit. Please use the `ReplaceParameter(FamilyParameter, ExternalDefinition, ForgeTypeId, bool)` method instead.")]
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.