read_only_variable#
- Mechanical.read_only_variable(name, value=True)[source]#
Set the variable to a read-only or not read-only variable.
- Parameters:
- 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")