Components#
- class pyedb.dotnet.database.components.Components(p_edb)#
Bases:
objectManages EDB components and related method accessible from Edb.components property.
- Parameters:
- edb_class
pyedb.dotnet.edb.Edb
- edb_class
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components
Overview#
Import component definition from json file. |
|
Export component definitions to json file. |
|
Refresh the component dictionary. |
|
Retrieve a component by name. |
|
Retrieve components from a net list. |
|
Get the placement vector between 2 components. |
|
Get component solder ball height. |
|
Retrieve all capacitors and inductors libraries from ANSYS installation (used by Siwave). |
|
Create voltage, current source, or resistor on component. |
|
Create circuit port between pins and reference ones. |
|
Create ports on a component. |
|
Replace RLC component by RLC gap boundaries. These boundary types are compatible with 3D modeler export. |
|
Deactivate RLC component with a possibility to convert it to a circuit port. |
|
Deactivate RLC component and replace it with a circuit port. |
|
Add RLC gap boundary on component and replace it with a circuit port. |
|
Create physical Rlc component. |
|
Create a component from pins. |
|
Create a component from pins. |
|
Assign a Spice or Touchstone model to a component. |
|
Create a pin group on a component. |
|
Delete all RLC components with a single pin. |
|
Delete a component. |
|
Delete a component. |
|
Disable a RLC component. |
|
Set cylindrical solder balls on a given component. |
|
Update values for an RLC component. |
|
Update the EDC core component values (RLCs) with values coming from a BOM file. |
|
Load external BOM file. |
|
Export Bom file from layout. |
|
Find a component. |
|
Retrieve the pins of a component. |
|
Retrieve the pin name that is shown in AEDT. |
|
Get component pins. |
|
Retrieve the pin position in meters. |
|
Retrieve pins belonging to a net. |
|
Retrieve nets with one or more pins. |
|
Retrieve net connection information. |
|
Retrieve a list of dictionaries of the reference designator, pin names, and net names. |
|
Retrieve through resistors. |
|
Short pins of component with a trace. |
Component setup information. |
|
All Cell components objects. |
|
Retrieve component definition list. |
|
Retrieve Nport component definition list. |
|
Resistors. |
|
Capacitors. |
|
Inductors. |
|
Integrated circuits. |
|
Circuit inupts and outputs. |
|
Other core components. |
|
Components by part name. |
Get a component or component definition from the Edb project. |
Import detail#
from pyedb.dotnet.database.components import Components
Property detail#
- property Components.components#
Component setup information.
Deprecated since version 0.6.62: Use new property
instances()instead.- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Default dictionary for the EDB component.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.components
- property Components.instances#
All Cell components objects.
- Returns:
Dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Default dictionary for the EDB component.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.instances
- property Components.definitions#
Retrieve component definition list.
- Returns:
dictofEDBComponentDef
- property Components.nport_comp_definition#
Retrieve Nport component definition list.
- property Components.resistors#
Resistors.
- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Dictionary of resistors.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.resistors
- property Components.capacitors#
Capacitors.
- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Dictionary of capacitors.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.capacitors
- property Components.inductors#
Inductors.
- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Dictionary of inductors.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.inductors
- property Components.ICs#
Integrated circuits.
- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Dictionary of integrated circuits.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.ICs
- property Components.IOs#
Circuit inupts and outputs.
- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Dictionary of circuit inputs and outputs.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.IOs
- property Components.Others#
Other core components.
- Returns:
dict[str,pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]Dictionary of other core components.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.others
Method detail#
- Components.__getitem__(name)#
Get a component or component definition from the Edb project.
- Parameters:
- name
str
- name
- Returns:
- Components.import_definition(file_path)#
Import component definition from json file.
- Parameters:
- file_path
str File path of json file.
- file_path
- Components.export_definition(file_path)#
Export component definitions to json file.
- Parameters:
- file_path
str File path of json file.
- file_path
- Returns:
- Components.refresh_components()#
Refresh the component dictionary.
- Components.get_component_by_name(name)#
Retrieve a component by name.
- Components.get_components_from_nets(netlist=None)#
Retrieve components from a net list.
- Components.get_component_placement_vector(mounted_component, hosting_component, mounted_component_pin1, mounted_component_pin2, hosting_component_pin1, hosting_component_pin2, flipped=False)#
Get the placement vector between 2 components.
- Parameters:
- mounted_componentedb.cell.hierarchy._hierarchy.Component
Mounted component name.
- hosting_componentedb.cell.hierarchy._hierarchy.Component
Hosting component name.
- mounted_component_pin1
str Mounted component Pin 1 name.
- mounted_component_pin2
str Mounted component Pin 2 name.
- hosting_component_pin1
str Hosted component Pin 1 name.
- hosting_component_pin2
str Hosted component Pin 2 name.
- flippedbool,
optional Either if the mounted component will be flipped or not.
- Returns:
tupleTuple of Vector offset, rotation and solder height.
Examples
>>> edb1 = Edb(edbpath=targetfile1, edbversion="2021.2") >>> hosting_cmp = edb1.components.get_component_by_name("U100") >>> mounted_cmp = edb2.components.get_component_by_name("BGA") >>> vector, rotation, solder_ball_height = edb1.components.get_component_placement_vector( ... mounted_component=mounted_cmp, ... hosting_component=hosting_cmp, ... mounted_component_pin1="A12", ... mounted_component_pin2="A14", ... hosting_component_pin1="A12", ... hosting_component_pin2="A14", ... )
- Components.get_solder_ball_height(cmp)#
Get component solder ball height.
- Components.get_vendor_libraries()#
Retrieve all capacitors and inductors libraries from ANSYS installation (used by Siwave).
- Returns:
ComponentLibobjectcontainsnesteddictionariestonavigatethrough[componenttype][vendors][series]
- class:
pyedb.component_libraries.ansys_components.ComponentPart ..
Examples
>>> edbapp = Edb() >>> comp_lib = edbapp.components.get_vendor_libraries() >>> network = comp_lib.capacitors["AVX"]["AccuP01005"]["C005YJ0R1ABSTR"].s_parameters >>> network.write_touchstone(os.path.join(edbapp.directory, "test_export.s2p"))
- Components.create_source_on_component(sources=None)#
Create voltage, current source, or resistor on component.
- Components.create_port_on_pins(refdes, pins, reference_pins, impedance=50.0, port_name=None, pec_boundary=False, pingroup_on_single_pin=False)#
Create circuit port between pins and reference ones.
- Parameters:
- refdes
Componentreferencedesignator str or EDBComponent object.
- pins
pinspecifier(s)orinstance(s)wheretheportterminalistobecreated.Singlepinnameoralistof - several can be provided. If several pins are provided a pin group will be created. Pin specifiers can be the
- global EDB object ID or padstack instance name or pin name on component with refdes ``refdes``. Pin instances
- can be provided as ``EDBPadstackInstance`` objects.
- For instance for the pin called ``Pin1`` located on component with refdes ``U1``: ``U1-Pin1``, ``Pin1`` with
- ``refdes=U1``, the pin’s global EDB object ID, or the ``EDBPadstackInstance`` corresponding to the pin can be
- provided.
Union[int, str, EDBPadstackInstance], List[Union[int, str, EDBPadstackInstance]]
- reference_pins
referencepinspecifier(s)orinstance(s)fortheportreferenceterminal.Allowedvaluesare - the same as for the ``pins`` parameter.
Union[int, str, EDBPadstackInstance], List[Union[int, str, EDBPadstackInstance]]
- impedance
Portimpedance str, float
- port_name
str,optional Port name. The default is
None, in which case a name is automatically assigned.- pec_boundarybool,
optional - Whether to define the PEC boundary, The default is ``False``. If set to ``True``,
- a perfect short is created between the pin and impedance is ignored. This
- parameter is only supported on a port created between two pins, such as
- when there is no pin group.
- pingroup_on_single_pinbool
If
Trueforce using pingroup definition on single pin to have the port created at the pad center. IfFalsethe port is created at the pad edge. Default value isFalse.
- refdes
- Returns:
EDBterminalcreated,orFalseiffailedtocreate.- Example:
>>> :obj:`from` :obj:`pyedb` :obj:`import` :obj:`Edb` ..>>> :obj:`edb` = :obj:`Edb`\(:obj:`path_to_edb_file`) ..>>> :obj:`pin` = "AJ6" ..>>> :obj:`ref_pins` = ["AM7", "AM4"] ..Ortotakeallreferencepins
>>> :obj:`ref_pins` = [:obj:`pin` :obj:`for` :obj:`pin` :obj:`in` :class:`python:list`\(:obj:`edb.components`\["U2A5"]:obj:`.pins.values`\()) :obj:`if` :obj:`pin.net_name` == "GND"] ..>>> :obj:`edb.components.create_port_on_pins`\(refdes="U2A5", pins=pin, reference_pins=ref_pins) ..>>> :obj:`edb.save_edb`\() ..>>> :obj:`edb.close_edb`\() ..
- Components.create_port_on_component(component, net_list, port_type=SourceType.CoaxPort, do_pingroup=True, reference_net='gnd', port_name=None, solder_balls_height=None, solder_balls_size=None, solder_balls_mid_size=None, extend_reference_pins_outside_component=False)#
Create ports on a component.
- Parameters:
- component
strorself._pedb.component EDB component or str component name.
- net_list
strorlistofstring. List of nets where ports must be created on the component. If the net is not part of the component, this parameter is skipped.
- port_type
SourceTypeenumerator,CoaxPortorCircuitPort Type of port to create.
CoaxPortgenerates solder balls.CircuitPortgenerates circuit ports on pins belonging to the net list.- do_pingroupbool
True activate pingroup during port creation (only used with combination of CircPort), False will take the closest reference pin and generate one port per signal pin.
- refnet
strorlistofstring. list of the reference net.
- port_name
str Port name for overwriting the default port-naming convention, which is
[component][net][pin]. The port name must be unique. If a port with the specified name already exists, the default naming convention is used so that port creation does not fail.- solder_balls_height
float,optional Solder balls height used for the component. When provided default value is overwritten and must be provided in meter.
- solder_balls_size
float,optional Solder balls diameter. When provided auto evaluation based on padstack size will be disabled.
- solder_balls_mid_size
float,optional Solder balls mid-diameter. When provided if value is different than solder balls size, spheroid shape will be switched.
- extend_reference_pins_outside_componentbool
When no reference pins are found on the component extend the pins search with taking the closest one. If do_pingroup is True will be set to False. Default value is False.
- component
- Returns:
double, boolSalder ball height vale,
Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> net_list = ["M_DQ<1>", "M_DQ<2>", "M_DQ<3>", "M_DQ<4>", "M_DQ<5>"] >>> edbapp.components.create_port_on_component(cmp="U2A5", net_list=net_list, >>> port_type=SourceType.CoaxPort, do_pingroup=False, refnet="GND")
- Components.replace_rlc_by_gap_boundaries(component=None)#
Replace RLC component by RLC gap boundaries. These boundary types are compatible with 3D modeler export. Only 2 pins RLC components are supported in this command.
- Parameters:
- component
str Reference designator of the RLC component.
- component
- Returns:
- bool
Truewhensucceed,Falseifitfailed.
Examples
>>> from pyedb import Edb >>> edb = Edb(edb_file) >>> for refdes, cmp in edb.components.capacitors.items(): >>> edb.components.replace_rlc_by_gap_boundaries(refdes) >>> edb.save_edb() >>> edb.close_edb()
- Components.deactivate_rlc_component(component=None, create_circuit_port=False, pec_boundary=False)#
Deactivate RLC component with a possibility to convert it to a circuit port.
- Parameters:
- component
str Reference designator of the RLC component.
- create_circuit_portbool,
optional Whether to replace the deactivated RLC component with a circuit port. The default is
False.- pec_boundarybool,
optional Whether to define the PEC boundary, The default is
False. If set toTrue, a perfect short is created between the pin and impedance is ignored. This parameter is only supported on a port created between two pins, such as when there is no pin group.
- component
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edb_file = r"C:\my_edb_file.aedb" >>> edb = Edb(edb_file) >>> for cmp in list(edb.components.instances.keys()): >>> edb.components.deactivate_rlc_component(component=cmp, create_circuit_port=False) >>> edb.save_edb() >>> edb.close_edb()
- Components.add_port_on_rlc_component(component=None, circuit_ports=True, pec_boundary=False)#
Deactivate RLC component and replace it with a circuit port. The circuit port supports only two-pin components.
- Parameters:
- component
str Reference designator of the RLC component.
- circuit_portsbool
Truewill replace RLC component by circuit ports,Falsegap ports compatible with HFSS 3D modeler export.- pec_boundarybool,
optional Whether to define the PEC boundary, The default is
False. If set toTrue, a perfect short is created between the pin and impedance is ignored. This parameter is only supported on a port created between two pins, such as when there is no pin group.
- component
- Returns:
- bool
Truewhen successful,Falsewhen failed.
- Components.add_rlc_boundary(component=None, circuit_type=True)#
Add RLC gap boundary on component and replace it with a circuit port. The circuit port supports only 2-pin components.
- Components.create_rlc_component(pins, component_name='', r_value=None, c_value=None, l_value=None, is_parallel=False)#
Create physical Rlc component.
- Parameters:
- pins
list List of EDB pins, length must be 2, since only 2 pins component are currently supported. It can be an dotnet.database.edb_data.padstacks_data.EDBPadstackInstance object or an Edb Padstack Instance object.
- component_name
str Component definition name.
- 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:
ComponentCreated EDB component.
- 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)#
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
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> pins = edbapp.components.get_pin_from_component("A1") >>> edbapp.components.create(pins, "A1New")
- Components.create_component_from_pins(pins, component_name, placement_layer=None, component_part_name=None)#
Create a component from pins.
Deprecated since version 0.6.62: Use
create()method instead.- Parameters:
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> pins = edbapp.components.get_pin_from_component("A1") >>> edbapp.components.create(pins, "A1New")
- Components.set_component_model(componentname, model_type='Spice', modelpath=None, modelname=None)#
Assign a Spice or Touchstone model to a component.
- Parameters:
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.set_component_model( ... "A1", model_type="Spice", modelpath="pathtospfile", modelname="spicemodelname" ... )
- Components.create_pingroup_from_pins(pins, group_name=None)#
Create a pin group on a component.
- Parameters:
- Returns:
tupleThe tuple is structured as: (bool, pingroup).
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.create_pingroup_from_pins(gndpinlist, "MyGNDPingroup")
- Components.delete_single_pin_rlc(deactivate_only: bool = False) list#
Delete all RLC components with a single pin. Single pin component model type will be reverted to
"RLC".- Parameters:
- deactivate_onlybool,
optional Whether to only deactivate RLC components with a single point rather than delete them. The default is
False, in which case they are deleted.
- deactivate_onlybool,
- Returns:
listList of deleted RLC components.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> list_of_deleted_rlcs = edbapp.components.delete_single_pin_rlc() >>> print(list_of_deleted_rlcs)
- Components.delete_component(component_name)#
Delete a component.
Deprecated since version 0.6.62: Use
delete()method instead.- Parameters:
- component_name
str Name of the component.
- component_name
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.delete("A1")
- Components.delete(component_name)#
Delete a component.
- Parameters:
- component_name
str Name of the component.
- component_name
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.delete("A1")
- Components.disable_rlc_component(component_name)#
Disable a RLC component.
- Parameters:
- component_name
str Name of the RLC component.
- component_name
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.disable_rlc_component("A1")
- Components.set_solder_ball(component='', sball_diam=None, sball_height=None, shape='Cylinder', sball_mid_diam=None, chip_orientation='chip_down', auto_reference_size=True, reference_size_x=0, reference_size_y=0, reference_height=0)#
Set cylindrical solder balls on a given component.
- Parameters:
- component
strorEDBcomponent,optional Name of the discrete component.
- sball_diam
str,float,optional Diameter of the solder ball.
- sball_height
str,float,optional Height of the solder ball.
- shape
str,optional Shape of solder ball. Options are
"Cylinder","Spheroid". The default is"Cylinder".- sball_mid_diam
str,float,optional Mid diameter of the solder ball.
- chip_orientation
str,optional Give the chip orientation,
"chip_down"or"chip_up". Default is"chip_down". Only applicable on IC model.- auto_reference_sizebool,
optional Whether to automatically set reference size.
- reference_size_x
int,str,float,optional X size of the reference. Applicable when auto_reference_size is False.
- reference_size_y
int,str,float,optional Y size of the reference. Applicable when auto_reference_size is False.
- reference_height
int,str,float,optional Height of the reference. Applicable when auto_reference_size is False.
- component
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.set_solder_ball("A1")
- Components.set_component_rlc(componentname, res_value=None, ind_value=None, cap_value=None, isparallel=False)#
Update values for an RLC component.
- Parameters:
- componentname
Name of the RLC component.
- res_value
float,optional Resistance value. The default is
None.- ind_value
float,optional Inductor value. The default is
None.- cap_value
floatoptional Capacitor value. The default is
None.- isparallelbool,
optional Whether the RLC component is parallel. The default is
False.
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.set_component_rlc("R1", res_value=50, ind_value=1e-9, cap_value=1e-12, isparallel=False)
- Components.update_rlc_from_bom(bom_file, delimiter=';', valuefield='Func des', comptype='Prod name', refdes='Pos / Place')#
Update the EDC core component values (RLCs) with values coming from a BOM file.
- Parameters:
- bom_file
str Full path to the BOM file, which is a delimited text file. Header values needed inside the BOM reader must be explicitly set if different from the defaults.
- delimiter
str,optional Value to use for the delimiter. The default is
";".- valuefield
str,optional Field header containing the value of the component. The default is
"Func des". The value for this parameter must being with the value of the component followed by a space and then the rest of the value. For example,"22pF".- comptype
str,optional Field header containing the type of component. The default is
"Prod name". For example, you might enter"Inductor".- refdes
str,optional Field header containing the reference designator of the component. The default is
"Pos / Place". For example, you might enter"C100".
- bom_file
- Returns:
- bool
Trueif the file contains the header and it is correctly parsed.Trueis returned even if no values are assigned.
- Components.import_bom(bom_file, delimiter=',', refdes_col=0, part_name_col=1, comp_type_col=2, value_col=3)#
Load external BOM file.
- Parameters:
- bom_file
str Full path to the BOM file, which is a delimited text file.
- delimiter
str,optional Value to use for the delimiter. The default is
",".- refdes_col
int,optional Column index of reference designator. The default is
"0".- part_name_col
int,optional Column index of part name. The default is
"1". Set toNoneif the column does not exist.- comp_type_col
int,optional Column index of component type. The default is
"2".- value_col
int,optional Column index of value. The default is
"3". Set toNoneif the column does not exist.
- bom_file
- Returns:
- Components.export_bom(bom_file, delimiter=',')#
Export Bom file from layout.
- Components.find_by_reference_designator(reference_designator)#
Find a component.
- Parameters:
- reference_designator
str Reference designator of the component.
- reference_designator
- Components.get_pin_from_component(component, netName=None, pinName=None, net_name=None, pin_name=None)#
Retrieve the pins of a component.
- Parameters:
- component
strorEDBcomponent Name of the component or the EDB component object.
- netName
str,optional Filter on the net name as an alternative to
pinName. The default isNone.- pinName
str,optional Filter on the pin name an alternative to
netName. The default isNone.- net_name
str,optional Filter on the net name as an alternative to
pin_name. The default isNone. This parameter is added to add compatibility with grpc and is recommended using it rather than netName.- pin_name
str,optional Filter on the pin name an alternative to
netName. The default isNone. This parameter is added to add compatibility with grpc and is recommended using it rather than pinName.
- component
- Returns:
listList 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)
- Components.get_aedt_pin_name(pin)#
Retrieve the pin name that is shown in AEDT.
Note
To obtain the EDB core pin name, use pin.GetName().
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_aedt_pin_name(pin)
- Components.get_pins(reference_designator, net_name=None, pin_name=None)#
Get component pins.
- Components.get_pin_position(pin)#
Retrieve the pin position in meters.
- Parameters:
- pin
str Name of the pin.
- pin
- Returns:
listPin position as a list of float values in the form
[x, y].
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_pin_position(pin)
- Components.get_pins_name_from_net(net_name, pin_list=None)#
Retrieve pins belonging to a net.
- Parameters:
- Returns:
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_pins_name_from_net(pin_list, net_name)
- Components.get_nets_from_pin_list(PinList)#
Retrieve nets with one or more pins.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_nets_from_pin_list(pinlist)
- Components.get_component_net_connection_info(refdes)#
Retrieve net connection information.
- Parameters:
- refdes
Reference designator for the net.
- Returns:
dictDictionary of the net connection information for the reference designator.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_component_net_connection_info(refdes)
- Components.get_rats()#
Retrieve a list of dictionaries of the reference designator, pin names, and net names.
- Returns:
listList of dictionaries of the reference designator, pin names, and net names.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_rats()
- Components.get_through_resistor_list(threshold=1)#
Retrieve through resistors.
- Parameters:
- threshold
int,optional Threshold value. The default is
1.
- threshold
- Returns:
listList of through resistors.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edbapp.components.get_through_resistor_list()
- Components.short_component_pins(component_name, pins_to_short=None, width=0.001)#
Short pins of component with a trace.
- Parameters:
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> edbapp.components.short_component_pins("J4A2", ["G4", "9", "3"])