ModelParameters.AddByValue Method
Parent Object: ModelParametersDescription
Method that creates a new model parameter given a name and equation.
Syntax
ModelParameters.AddByValue( Value As Variant, UnitsSpecifier As Variant, [Name] As String ) As ModelParameterParameters
Name | Type | Description |
Value | Variant | Specifies the value for the parameter. This value is given in database units for the unit type defined by the UnitsSpecifier argument. |
UnitsSpecifier | Variant | Input value that specifies the type of unit the parameter is. The units can be specified using either a string defining a valid unit or an item from the UnitsTypeEnum. If the equation references existing parameters, this unit type must be consistent with the unit type defined by the equation, otherwise an error will occur. |
Name | String | Optional input String value that specifies the name for the parameter. The name must be unique with respect to all other parameters in this document. If a unique name is not specified an error will occur. If not specified, a unique name generated by Inventor is assigned to the parameter. This is an optional argument whose default value is "". |
Samples
Name | Description |
Creating a new parameter group | This sample demonstrates the creation of model, reference and user parameters and copying these parameters to a newly created group. |