2024 Method
Changes 2
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. To add a parameter of family type use the AddParameter overload that accepts a category instead.
public FamilyParameter AddParameter(
	string parameterName,
	ForgeTypeId groupTypeId,
	ForgeTypeId specTypeId,
	bool isInstance
)
  • String
    parameterName
    The name of the new family parameter.
  • groupTypeId
    The identifier of the new family parameter's parameter group.
  • specTypeId
    The type of new family parameter.
  • 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.