get_evaluated_value

Rmxprt.get_evaluated_value(variable_name, variation=None, units=None)

Retrieve the evaluated value of a design property or project variable in SI units if no Unit is provided.

Parameters
variable_namestr

Name of the design property or project variable.

variationfloat, optional

Variation value for the evaluation. The default is None, in which case the nominal variation is used.

unitsstr

Name of the unit to rescale method. SI will be applied by default.

Returns
float

Evaluated value of the design property or project variable in SI units.

References

>>> oDesign.GetNominalVariation
>>> oDesign.GetVariationVariableValue

Examples

>>> M3D = Maxwell3d()
>>> M3D["p1"] = "10mm"
>>> M3D["p2"] = "20mm"
>>> M3D["p3"] = "P1 * p2"
>>> eval_p3 = M3D.get_evaluated_value("p3")