Replace a shared family parameter with a new non-shared family parameter.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
[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,
string parameterName,
BuiltInParameterGroup parameterGroup,
bool isInstance
) |
Visual Basic |
---|
<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 Function ReplaceParameter ( _
currentParameter As FamilyParameter, _
parameterName As String, _
parameterGroup As BuiltInParameterGroup, _
isInstance As Boolean _
) As FamilyParameter |
Visual C++ |
---|
[ObsoleteAttribute(L"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,
String^ parameterName,
BuiltInParameterGroup parameterGroup,
bool isInstance
) |
Return Value
If replacement was successful the new family parameter is returned,
otherwise an exception with failure information will be thrown.
Exceptions
See Also