API Guide > PTC Mathcad Prime Objects > Object: GetValueResult
Object: GetValueResult
This object represents the PTC Mathcad Prime GetValueResult for inputs and outputs for all supported types.
Ptc.MathcadPrime.Automation.IMathcadPrimeGetValueResult.
Properties
ErrorCode—Gets the error code.
Returns:
–1
An unknown error occurred when performing this function. It can also occur if the worksheet is not open.
0
No error. The function was successful.
1
An alias of input/output item was not found.
2
Input/Output has been disabled.
3
Units incompatible.
4
Input is invalid.
5
Calculation error.
6
Result type incompatible.
7
Matrix result is invalid.
8
Calculation time out.
9
Calculation disabled.
MatrixResult—Gets the matrix result (by type of Matrix).
Returns:
Null in case of error.
RealResult—Gets the real result (by type of Real).
Returns:
Null in case of error.
ResultType—Gets the type of the returned value, where type can be Real, String, Matrix or None (e.g. when there is a calculation error).
Returns:
Null in case of error.
StringResult—Gets the string (by type of String).
Returns:
Null in case of error.
Units—Gets the units.
Was this helpful?