A .kicad_pcb file as its outline
A KiCad board (.kicad_pcb, an s-expression opening (kicad_pcb) opens on its
blob page as an SVG of its Edge.Cuts outline, with its layer list and counts of
footprints, tracks, vias and zones as text. Source is one tap away.
src/web/render/kicad.tsparses and draws;kinds.tsmaps the extension to thekicadkind (the first bytes must be(kicad_pcb, else the file stays text);renderers.tsnames the renderer.- Drawn:
gr_line,gr_arc(three-point and the older angle form),gr_circle,gr_rectandgr_polyon Edge.Cuts, in millimetres. Counted, not drawn: footprints, tracks, vias, zones; graphics inside footprints. - At most 20,000 outline graphics are drawn and 64 layers listed, the rest said so. A file over 5 MB or that does not parse keeps the source view, with the reason in one line.
- The MCP
read_filetool answers the same facts asaboutfor a.kicad_pcb:{kind, version, layers, copperLayers, footprints, tracks, vias, outlineItems, size}. - Try it: commit a
.kicad_pcbfile to a repository and open its file page.