Edit Current of an Existing Winding Group #5170
-
Hey, this problem seems basic to me, but I am having trouble editing the properties of existing winding groups. My winding groups are defined using:
To edit the current afterwards, my first attempt was using So I tried recording the script, which gave me this result:
However, I am afraid I am not familiar enough with the PYAEDT syntax to translate this code. Sorry if I just didn't find the corresponding documentation. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@nikmarlo One of the main advantages of using PyAEDT instead of the AEDT API, is the object oriented approach. You can save the returned object in a variable like: wind1 = maxwell_2d.assign_winding(winding_type="Current", is_solid=True, current=1, name=winding_group_p1) If you do dir(wind1) you will see all the properties available, they are getter and setter. For instance: wind1.object_properties.props["Current"] = "1A" |
Beta Was this translation helpful? Give feedback.
@nikmarlo One of the main advantages of using PyAEDT instead of the AEDT API, is the object oriented approach.
You can save the returned object in a variable like:
wind1 = maxwell_2d.assign_winding(winding_type="Current", is_solid=True, current=1, name=winding_group_p1)
If you do dir(wind1) you will see all the properties available, they are getter and setter. For instance:
wind1.object_properties.props["Current"] = "1A"