get_pin_from_component#

Components.get_pin_from_component(component, netName=None, pinName=None)[source]#

Retrieve the pins of a component.

Parameters:
componentstr or EDB component

Name of the component or the EDB component object.

netNamestr, optional

Filter on the net name as an alternative to pinName. The default is None.

pinNamestr, optional

Filter on the pin name an alternative to netName. The default is None.

Returns:
list

List of pins when the component is found or [] otherwise.

Examples

>>> from pyedb import Edb
>>> edbapp = Edb("myaedbfolder", "project name", "release version")
>>> edbapp.components.get_pin_from_component("R1", refdes)