kicad2ems.core.importers¶
Board importers: each reads one kind of board file into the same raw form, which
board.Board resolves (KiCad coordinates: mm, y down).
raw = open_board('board.kicad_pcb') # KiCad
raw = open_board('fab/board-job.gbrjob', pos='fab/board-top.pos')
# Gerber X2 + Excellon + job file
The raw form (Imported): path, importer; stack_items [dict(kind copper / diel /
mask, name, t (m), er, tand)] top to bottom; copper_order (copper layer names,
top to bottom); items [(layer, net, geometry)] (all the copper); shapes (the
zones and drawn copper among the items); tracks [dict(layer, net, width, pts)];
vias [dict(x, y, size, drill, layers, net[, pth])]; footprints [dict(ref, value,
fab, props, x, y, rot, side, pads, dnp, exclude_from_sim)] with pads [dict(name,
xy, layers, net, geom, rot)]; edges (outline pieces); drawings {layer: [outline
pieces]} (regions drawn on User.1 ...); port_footprints().
- class kicad2ems.core.importers.Imported(path='')[source]¶
The raw form every importer produces (see the module).
- kicad2ems.core.importers.open_board(path, pos=None)[source]¶
The imported board of a file, by its extension: .kicad_pcb (KiCad) or .gbrjob (the job file of a set of Gerber X2 / Excellon files; the ports come from the pick-and-place file `pos`).
Modules