get_expression#

VariableManager.get_expression(name: str) str#

Retrieve the variable value of a project or design variable as a string.

Parameters:
namestr

Name of the expression.

References

>>> oProject.GetVariableValue
>>> oDesign.GetVariableValue

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> hfss.variable_manager.get_expression("p1")