connect_components_in_series#

NexximComponents.connect_components_in_series(assignment, use_wire=True)[source]#

Connect schematic components in series.

Parameters:
assignmentlist of ansys.aedt.core.modeler.cad.object_3dcircuit.CircuitComponent

List of Components to connect. It can be a list of objects or component names.

use_wirebool, optional

Whether to use wires or a page port to connect the pins. The default is True, in which case wires are used. Note that if wires are not well placed, shorts can result.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core import Circuit
>>> circuit = Circuit()
>>> circuit.modeler.schematic_units = "mil"
>>> myind = circuit.modeler.schematic.create_inductor(value=1e-9,location=[0,0])
>>> myres = circuit.modeler.schematic.create_resistor(value=50,location=[100, 2000])
>>> circuit.modeler.schematic.connect_components_in_series([myind, myres])