Gets the value (in internal units) of the expression.
"unitsManager_var" is a variable referencing a UnitsManager object.
|
"unitsManager_var" is a variable referencing a UnitsManager object.
|
Type | Description |
double | Returns -1 AND GetLastError will return ExpressionError in the event of an error. |
Name | Type | Description |
expression | string | EvaluateExpression("1cm + 1in") -> 3.54 EvaluateExpression("1") -> -> depends on the DistanceUnits, with "mm" it gives 0.1 |
units | string | If not supplied the units will default to the default length specified in the preferences. This is an optional argument whose default value is "DefaultDistance". |
Name | Description |
Use inputBox to get value and evaluateExpression to validate it | Uses the UserInterface.inputBox function to get a string from the user and then validates that the strinng entered is a valid expression by using the UnitsManager.evaluateExpression function. |