LayerCollection#
- class pyedb.grpc.database.stackup.LayerCollection(pedb, edb_object)#
Bases:
ansys.edb.core.layer.layer_collection.LayerCollectionManages 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#
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. |
|
Add a document layer. |
|
Find a layer by its name. |
Retrieve the dictionary of signal and dielectric layers. |
|
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.stackup_layers#
Retrieve the dictionary of signal and dielectric layers.
Deprecated since version 0.6.61: Use
layers()instead.- Returns:
dict[str,pyedb.grpc.database.layers.stackup_layer.StackupLayer]Dictionary of stackup layers.
- 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
Method detail#
- 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")
- LayerCollection.add_document_layer(name: str, layer_type: str = 'user', **kwargs: Any) pyedb.grpc.database.layers.layer.Layer | None#
Add a document layer.
- Parameters:
- Returns:
pyedb.grpc.database.layers.layer.LayerLayer object created.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> outline_layer = edb.stackup.add_document_layer("Outline", layer_type="outline")
- LayerCollection.find_layer_by_name(name: str)#
Find a layer by its name.
Deprecated since version 0.29.0: Use
find_by_name()instead.- Parameters:
- name
str Name of the layer.
- name
- Returns:
ansys.edb.core.layer.LayerLayer object found.
- Raises:
ValueErrorIf no layer with the given name is found.