XmlLayers#
- class pyedb.xml_parser.xml_stackup.XmlLayers(/, **data: Any)#
Bases:
pydantic.BaseModelContainer for layer definitions in the XML stackup.
Overview#
Add a layer to the stackup. |
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. |
Import detail#
from pyedb.xml_parser.xml_stackup import XmlLayers
Attribute detail#
- XmlLayers.model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Method detail#
- XmlLayers.add_layer(**kwargs) XmlLayer#
Add a layer to the stackup.
- Parameters:
- **kwargs
Any Layer properties as keyword arguments. Supported properties include
name,type,thickness,material,fill_material,color,negative, andgdsii_via.
- **kwargs
- Returns:
XmlLayerThe newly created layer object.
Examples
>>> from pyedb.xml_parser.xml_stackup import XmlLayers >>> layers = XmlLayers(length_unit="mm") >>> signal = layers.add_layer(name="TOP", type="signal", thickness=0.035, material="copper") >>> dielectric = layers.add_layer(name="Core", type="dielectric", thickness=0.2, material="fr4")