set_oo_property_value#

Q2d.set_oo_property_value(aedt_object: object, object_name: str, prop_name: str, value: str) bool#

Change the property value of the object-oriented AEDT object.

Parameters:
aedt_objectobject

AEDT object to search for the property on. It can be any oProperty. For example, oDesign.

object_namestr

Path to the object list.

prop_namestr

Property name.

valuestr

Property value.

Returns:
bool

Values returned by method if any.

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> app.set_oo_property_value(app.odesign, "Design Settings", "ModelDepth", "1mm")