9.5. Other formats

    For other netlist formats you can add netlist converters in the form of plugins. These converters are automatically launched by Eeschema. Chapter 14 gives some explanations and examples of converters.

    A converter is a text file (xsl format) but one can use other languages like Python. When using the xsl format, a tool (xsltproc.exe or xsltproc) read the intermediate file created by Eeschema, and the converter file to create the output file. In this case, the converter file (a sheet style) is very small and very easy to write.

    You can add a new netlist plug-in via the Add Plugin button.

    Here is the plug-in PadsPcb setup window:

    eeschema_netlist_dialog_padspcb_png

    The setup will require:

    • A title (for example, the name of the netlist format).
    1. Eeschema creates an intermediate file *.tmp, for example test.tmp.
    2. Eeschema runs the plug-in, which reads test.tmp and creates test.net.

    Here is an example, using xsltproc.exe as a tool to convert .xsl files, and a file netlist_form_pads-pcb.xsl as converter sheet style:

    f:/kicad/bin/xsltproc.exe -o %O.net f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl %I

    With:

    For a schematic named test.sch, the actual command line is:

    f:/kicad/bin/xsltproc.exe -o test.net f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl test.tmp.

    This is a very simple piece of software, because its purpose is only to convert an input text file (the intermediate text file) to another text file. Moreover, from the intermediate text file, you can create a BOM list.

    When using xsltproc as the converter tool only the sheet style will be generated.