Documentação da API > Parameters and relations > Object ProParameter > Function ProParameterValueWithUnitsGet
Function ProParameterValueWithUnitsGet
Description
Retrieves the value and units of the specified ProParameter.
Replacement in Object TOOLKIT:
Synopsis
#include <ProParameter.h>
ProParameterValueWithUnitsGet
(
/* (In)
The handle to the parameter to query
*/
/* (Out)
The value currently held in the ProParameter The value is assumed to be in the specified units. Pass units as NULL to get value in units of owner model
*/
/* (Out)
The units in which the value is expressed. Pass NULL if unit is not required. If none found, an empty string will be returned.
*/
)
Returns
The function successfully retrieved the information. Parameter could be unitless.
The owner was not found.
One or more arguments was invalid.
The parameter was not found, or the function could not perform the action.
Sample Code References
User Guide References
Isto foi útil?