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:
- pins
list
List of EDB core pins.
- component_name
str
Name of the reference designator for the component.
- placement_layer
str
,optional
Name of the layer used for placing the component.
- component_part_name
str
,optional
Part name of the component.
- is_rlcbool,
optional
Whether if the new component will be an RLC or not.
- r_value
float
Resistor value.
- c_value
float
Capacitance value.
- l_value
float
Inductor value.
- is_parallelbool
Using parallel model when
True
, series whenFalse
.
- pins
- 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")