Skip to content

Edit Current of an Existing Winding Group #5170

Closed Answered by Samuelopez-ansys
nikmarlo asked this question in Q&A
Discussion options

You must be logged in to vote

@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"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikmarlo
Comment options

Answer selected by nikmarlo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants