API 文件集 > Parameters and relations > Object ProParameter > Function ProParameterListValueSet
Function ProParameterListValueSet
Description
Sets the list values given with unit of an existing ProParameter.
Synopsis
#include <ProParameter.h>
ProParameterListValueSet
(
/* (In)
The handle to the parameter to set.
*/
/* (In)
ProArray of param values to set. The values assumed to be in the units specified by units argument (when the units argument is not NULL) or in the units of the owner model, when argument units is NULL.
*/
/* (In)
The new units. The units must be the same quantity type as the parameter's units (i.e. if the units are "inch", a value can be expressed in "cm"). Can be NULL. If you pass NULL, the function will assume the units of the owner model.
*/
)
Returns
The function successfully set the list values and units.
The owner was not found.
One or more arguments was invalid.
The units type provided does not match the units of the parameter.
The parameter was not found, or the function could not perform the action.
這是否有幫助?