read_only_variable#

Circuit.read_only_variable(variable_name, value=True)[source]#

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

Parameters:
variable_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 pyaedt import Hfss
>>> hfss = Hfss()
>>> hfss["my_read_only_variable"] = "15mm"
>>> hfss.make_read_only_variable("my_read_only_variable")