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_name
str
Name of the layer.
- base_layer
str
,optional
Name of the base layer.
- method
str
,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_type
str
,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"
.
- Type of layer. The default is
- material
str
,optional
Material of the layer.
- fillMaterial
str
,optional
Fill material of the layer.
- thickness
str
,float
,optional
Thickness of the layer.
- etch_factor
int
,float
,optional
Etch factor of the layer.
- is_negativebool,
optional
Whether the layer is negative.
- enable_roughnessbool,
optional
Whether roughness is enabled.
- elevation
float
,optional
Elevation of new layer. Only valid for Overlapping Stackup.
- layer_name
- Returns: