delete_variable#

VariableManager.delete_variable(name: str) bool#

Delete a variable.

Parameters:
namestr

Name of the variable.

Returns:
bool

True when successful, False when failed.

References

>>> oProject.ChangeProperty
>>> oDesign.ChangeProperty

Examples

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