UnitsManager.isValidExpression Method

Parent Object: UnitsManager
Defined in namespace "adsk::core" and the header file is <Core/Application/UnitsManager.h>

Description

Checks to see if the given expression is valid.

Syntax

"unitsManager_var" is a variable referencing a UnitsManager object.
returnValue = unitsManager_var.isValidExpression(expression, units)
"unitsManager_var" is a variable referencing a UnitsManager object.

#include <Core/Application/UnitsManager.h>

returnValue = unitsManager_var->isValidExpression(expression, units);

Return Value

Type Description
boolean Returns True if it is a valid expression.

Parameters

Name Type Description
expression string The expression to validate.
units string The units to use when validating the expression.

Version

Introduced in version January 2015