Share

ReferenceParameters.AddByValue Method

Parent Object: ReferenceParameters

Description

Method that creates a new reference parameter given a name and equation.

Syntax

ReferenceParameters.AddByValue( Value As Variant, UnitsSpecifier As Variant, [Name] As String ) As ReferenceParameter

Parameters

Name Type Description
Value Variant Input Double value that 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 "".

Version

Introduced in version 10

Was this information helpful?