evaluate_expression#

TwinBuilder.evaluate_expression(expression)[source]#

Evaluate a valid string expression and return the numerical value in SI units.

Parameters:
expressionstr

A valid string expression for a design property or project variable. For example, "34mm*sqrt(2)" or "$G1*p2/34".

Returns:
float

Evaluated value for the string expression.