LayerCollection#
- class pyedb.grpc.database.stackup.LayerCollection(pedb=None, core=None)#
Manages layer collections in an EDB database.
- Parameters:
- pedb
pyedb.Edb EDB object.
- edb_object
ansys.edb.core.layer.LayerCollection EDB layer collection object.
- pedb
Overview#
Create layer collection. |
Update the layout with the current layer collection. |
|
Add a layer on top of the stackup. |
|
Add a layer at the bottom of the stackup. |
|
Add a layer below a specified layer. |
|
Add a layer above a specified layer. |
Retrieve the dictionary of non-stackup layers. |
|
Retrieve all layers. |
|
Retrieve the dictionary of signal layers. |
|
Retrieve the dictionary of dielectric layers. |
|
Retrieve the list of layers with their IDs. |
|
Retrieve the dictionary of stackup layers (signal and dielectric). |
Import detail#
from pyedb.grpc.database.stackup import LayerCollection
Property detail#
- property LayerCollection.non_stackup_layers: Dict[str, pyedb.grpc.database.layers.layer.Layer]#
Retrieve the dictionary of non-stackup layers.
- Returns:
dict[str,pyedb.grpc.database.layers.layer.Layer]Dictionary of non-stackup layers.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> non_stackup = edb.stackup.non_stackup_layers
- property LayerCollection.all_layers: Dict[str, pyedb.grpc.database.layers.layer.Layer]#
Retrieve all layers.
- Returns:
dict[str,pyedb.grpc.database.layers.layer.Layer]Dictionary of all layers.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> all_layers = edb.stackup.all_layers
- property LayerCollection.signal_layers: Dict[str, pyedb.grpc.database.layers.stackup_layer.StackupLayer]#
Retrieve the dictionary of signal layers.
- Returns:
dict[str,pyedb.grpc.database.layers.stackup_layer.StackupLayer]Dictionary of signal layers.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> signal_layers = edb.stackup.signal_layers
- property LayerCollection.dielectric_layers: Dict[str, pyedb.grpc.database.layers.stackup_layer.StackupLayer]#
Retrieve the dictionary of dielectric layers.
- Returns:
dict[str,pyedb.grpc.database.layers.stackup_layer.StackupLayer]Dictionary of dielectric layers.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> dielectric_layers = edb.stackup.dielectric_layers
- property LayerCollection.layers_by_id: List[List[int | str]]#
Retrieve the list of layers with their IDs.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> layers_by_id = edb.stackup.layers_by_id
- property LayerCollection.layers: Dict[str, pyedb.grpc.database.layers.stackup_layer.StackupLayer]#
Retrieve the dictionary of stackup layers (signal and dielectric).
- Returns:
dict[str,pyedb.grpc.database.layers.stackup_layer.StackupLayer]Dictionary of stackup layers.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> layers = edb.stackup.layers
Attribute detail#
- LayerCollection.core = None#
Method detail#
- classmethod LayerCollection.create(mode: str = 'laminate') LayerCollection#
Create layer collection.
- Parameters:
- mode
str,optional layer mode. Valid values, “laminate”, “overlapping”. Default value is “laminate”
- mode
- Returns:
LayerCollection
- LayerCollection.update_layout()#
Update the layout with the current layer collection.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> edb.stackup.update_layout()
- LayerCollection.add_layer_top(name: str, layer_type: str = 'signal', **kwargs) pyedb.grpc.database.layers.layer.Layer | None#
Add a layer on top of the stackup.
- Parameters:
- Returns:
pyedb.grpc.database.layers.stackup_layer.StackupLayerLayer object created.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> top_layer = edb.stackup.add_layer_top( ... "NewTopLayer", layer_type="signal", thickness="0.1mm", material="copper" ... )
- LayerCollection.add_layer_bottom(name: str, layer_type: str = 'signal', **kwargs) pyedb.grpc.database.layers.layer.Layer | None#
Add a layer at the bottom of the stackup.
- Parameters:
- name
str Name of the layer.
- layer_type
str,optional Type of the layer. The default is
"signal". Options are"signal"and"dielectric".- **kwargs
dict,optional Additional keyword arguments. Possible keys are: -
thickness: float, layer thickness. -material: str, layer material. -fill_material: str, fill material.
- name
- Returns:
pyedb.grpc.database.layers.stackup_layer.StackupLayerLayer object created.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> bot_layer = edb.stackup.add_layer_bottom( ... "NewBottomLayer", layer_type="signal", thickness="0.1mm", material="copper" ... )
- LayerCollection.add_layer_below(name: str, base_layer_name: str, layer_type: str = 'signal', **kwargs) pyedb.grpc.database.layers.layer.Layer | None#
Add a layer below a specified layer.
- Parameters:
- name
str Name of the layer.
- base_layer_name
str Name of the base layer.
- layer_type
str,optional Type of the layer. The default is
"signal". Options are"signal"and"dielectric".- **kwargs
dict,optional Additional keyword arguments. Possible keys are: -
thickness: float, layer thickness. -material: str, layer material.
- name
- Returns:
pyedb.grpc.database.layers.stackup_layer.StackupLayerLayer object created.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> new_layer = edb.stackup.add_layer_below("NewLayer", "TopLayer", layer_type="dielectric", thickness="0.05mm")
- LayerCollection.add_layer_above(name: str, base_layer_name: str, layer_type: str = 'signal', **kwargs) pyedb.grpc.database.layers.layer.Layer | None#
Add a layer above a specified layer.
- Parameters:
- name
str Name of the layer.
- base_layer_name
str Name of the base layer.
- layer_type
str,optional Type of the layer. The default is
"signal". Options are"signal"and"dielectric".- **kwargs
dict,optional Additional keyword arguments. Possible keys are: -
thickness: float, layer thickness. -material: str, layer material.
- name
- Returns:
pyedb.grpc.database.layers.stackup_layer.StackupLayerLayer object created.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> new_layer = edb.stackup.add_layer_above("NewLayer", "BottomLayer", layer_type="signal", thickness="0.05mm")