connect_components#

EmitSchematic.connect_components(component_name_1: str, component_name_2: str)#

Connect two components in the schematic.

Parameters:
component_1str

Name of the first component.

component_2str

Name of the second component.

Raises:
RuntimeError

If the connection fails.

Examples

>>> from ansys.aedt.core import Emit
>>> app = Emit()
>>> antenna = app.schematic.create_component("Antenna")
>>> radio = app.schematic.create_component("Bluetooth")
>>> app.schematic.connect_components(antenna.name, radio.name)