create#

Components.create(pins, component_name=None, placement_layer=None, component_part_name=None, is_rlc=False, r_value=None, c_value=None, l_value=None, is_parallel=False)[source]#

Create a component from pins.

Parameters:
pinslist

List of EDB core pins.

component_namestr

Name of the reference designator for the component.

placement_layerstr, optional

Name of the layer used for placing the component.

component_part_namestr, optional

Part name of the component.

is_rlcbool, optional

Whether if the new component will be an RLC or not.

r_valuefloat

Resistor value.

c_valuefloat

Capacitance value.

l_valuefloat

Inductor value.

is_parallelbool

Using parallel model when True, series when False.

Returns:
bool

True when successful, False when failed.

Examples

>>> from pyedb import Edb
>>> edbapp = Edb("myaedbfolder")
>>> pins = edbapp.components.get_pin_from_component("A1")
>>> edbapp.components.create(pins, "A1New")