2022 Method
Changes 8
M

FamilyManager.AddParameter

Description:
Add a new family parameter with a given name.
Remarks:
This method can work even without any family type, but it cannot be assigned the value via FamilyManager.Set methods when there is no current type.
[ObsoleteAttribute("This property is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the AddParameter(string, ForgeTypeId, ForgeTypeId, bool) overload instead.")]
public FamilyParameter AddParameter(
	string parameterName,
	BuiltInParameterGroup parameterGroup,
	ParameterType parameterType,
	bool isInstance
)
Return Value FamilyParameter If creation was successful the new parameter is returned, otherwise an exception with failure information will be thrown.