gerbonara/docs/file-api.rst
2022-02-01 22:08:54 +01:00

973 B

Layers and Files

Gerbonara currently supports three file types: RS-274-X Gerber as specified by Ucamco <https://www.ucamco.com/en/gerber>._ through .GerberFile, Excellon/XNC through .ExcellonFile, and IPC-356 netlists through .Netlist.

Usually, a PCB is sent to a manufacturer as a bundle of several of these files. Such a bundle of files (each of which is either a .GerberFile or an .ExcellonFile) is represented by .LayerStack. .LayerStack contains logic to automatcally recognize a wide variety of CAD tools from file name and syntactic hints, and can automatically match all files in a folder to their appropriate layers.

gerbonara.layers.LayerStack

gerbonara.rs274x.GerberFile

gerbonara.excellon.ExcellonFile

gerbonara.ipc356.Netlist