add_layer#

Stackup.add_layer(layer_name, base_layer=None, method='add_on_top', layer_type='signal', material='copper', fillMaterial='FR4_epoxy', thickness='35um', etch_factor=None, is_negative=False, enable_roughness=False, elevation=None)[source]#

Insert a layer into stackup.

Parameters:
layer_namestr

Name of the layer.

base_layerstr, optional

Name of the base layer.

methodstr, optional

Where to insert the new layer. The default is "add_on_top". Options are "add_on_top", "add_on_bottom", "insert_above", "insert_below", "add_at_elevation",.

layer_typestr, optional
Type of layer. The default is "signal". Options are "signal", "dielectric", "conducting",

"air_lines", "error", "symbol", "measure", "assembly", "silkscreen", "solder_mask", "solder_paste", "glue", "wirebond", "hfss_region", "user".

materialstr, optional

Material of the layer.

fillMaterialstr, optional

Fill material of the layer.

thicknessstr, float, optional

Thickness of the layer.

etch_factorint, float, optional

Etch factor of the layer.

is_negativebool, optional

Whether the layer is negative.

enable_roughnessbool, optional

Whether roughness is enabled.

elevationfloat, optional

Elevation of new layer. Only valid for Overlapping Stackup.

Returns:
pyedb.dotnet.edb_core.edb_data.layer_data.LayerEdbClass