change_property#
- Mechanical.change_property(aedt_object, tab_name, property_object, property_name, property_value)#
Change a property.
- Parameters:
- aedt_object
Aedt object. It can be oproject, odesign, oeditor or any of the objects to which the property belongs.
- tab_name
str
Name of the tab to update. Options are
BaseElementTab
,EM Design
, andFieldsPostProcessorTab
. The default isBaseElementTab
.- property_object
str
Name of the property object. It can be the name of an excitation or field reporter. For example,
Excitations:Port1
orFieldsReporter:Mag_H
.- property_name
str
Name of the property. For example,
Rotation Angle
.- property_value
str
,list
Value of the property. It is a string for a single value and a list of three elements for
[x,y,z]
coordianates.
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oEditor.ChangeProperty