Skip to content

MaxwellCircuitComponents: create_component #4847

Answered by gmalinve
rickygill00 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rickygill00,

To create a winding you simply need this method: create_winding().
A usage example could be:
my_wdg = my_aedtapp.modeler.schematic.create_winding(name="wdg_name", location, angle use_instance_id_netlist=False)
This returns a CircuitComponent object where you could access several properties, one of which the composed_name.
To know which ones to access please do: dir(my_wdg) in your IDE.
If you want to use the set_property() method try the following from the CircuitComponent object:
my_wdg.set_property("Name", new_name)

Hope this helps,

Kind regards,

Giulia

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gmalinve
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants