export#

Stackup.export(fpath, file_format='xml', include_material_with_layer=False)[source]#

Export stackup definition to a CSV or JSON file.

Parameters:
fpathstr

File path to csv or json file.

file_formatstr, optional

Format of the file to export. The default is "csv". Options are "csv", "xlsx", "json".

include_material_with_layerbool, optional.

Whether to include the material definition inside layer ones. This parameter is only used when a JSON file is exported. The default is False, which keeps the material definition section in the JSON file. If True, the material definition is included inside the layer ones.

Examples

>>> from pyedb import Edb
>>> edb = Edb()
>>> edb.stackup.export("stackup.xml")