gerbonara/docs/file-api.rst
2023-02-25 17:31:16 +01:00

1.1 KiB

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.

.CamFile is the common base class for all layer types.

gerbonara.cam.CamFile

gerbonara.rs274x.GerberFile

gerbonara.excellon.ExcellonFile

gerbonara.ipc356.Netlist

gerbonara.layers.LayerStack