read_only_variable#

MaxwellCircuit.read_only_variable(name, value=True)#

Set the variable to a read-only or not read-only variable.

Parameters:
namestr

Name of the variable.

valuebool, optional

Whether the variable is read-only. The default is True, in which case the variable is read-only. When False, the variable is not read-only.

Returns:
bool

True when successful, False when failed.

References

>>> oDesign.ChangeProperty

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> hfss["my_read_only_variable"] = "15mm"
>>> hfss.make_read_only_variable("my_read_only_variable")