change_symbol_pin_locations#

CircuitComponent.change_symbol_pin_locations(pin_locations)[source]#

Change the locations of symbol pins.

Parameters:
pin_locationsdict

A dictionary with two keys: “left” and “right”, each containing a list of pin names to be placed on the left and right sides of the symbol, respectively.

Returns:
bool

True if pin locations were successfully changed, False otherwise.

References

>>> oSymbolManager.EditSymbolAndUpdateComps

Examples

>>> from ansys.aedt.core import Circuit
>>> cir = Circuit(my_project)
>>> cir.modeler.schematic_units = "mil"
>>> ts_path = os.path.join(current_path, "connector_model.s4p")
>>> ts_component = cir.modeler.schematic.create_touchstone_component(ts_path, show_bitmap=False)
>>> pin_locations = {"left":
...                 ['DDR_CH3_DM_DBI0_BGA_BE47', 'DDR_CH3_DM_DBI1_BGA_BJ50','DDR_CH3_DM_DBI1_DIE_12471'],
...                 "right": ['DDR_CH3_DM_DBI0_DIE_7976']}
>>> ts_component.change_symbol_pin_locations(pin_locations)