2024 Method
Changes 8
M

FamilyManager.AddParameter

Description:
Add a new family type parameter to control the type of a nested family within another family.
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 method is deprecated in Revit 2024 and may be removed in a future version of Revit. Please use the `AddParameter(String, ForgeTypeId, Category, bool)` method instead.")]
public FamilyParameter AddParameter(
	string parameterName,
	BuiltInParameterGroup parameterGroup,
	Category familyCategory,
	bool isInstance
)
  • String
    parameterName
    The name of the new family parameter.
  • parameterGroup
    The group to which the family parameter belongs.
  • familyCategory
    The category to which the new family parameter binds.
  • Boolean
    isInstance
    Indicates if the new family parameter is instance or type.
Return Value FamilyParameter If creation was successful the new parameter is returned, otherwise an exception with failure information will be thrown.