2024 Method
Changes 2
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.
public FamilyParameter ReplaceParameter(
	FamilyParameter currentParameter,
	ExternalDefinition familyDefinition,
	ForgeTypeId groupTypeId,
	bool isInstance
)
Return Value FamilyParameter If replacement was successful the new shared parameter is returned, otherwise an exception with failure information will be thrown.