kicad2ems.core.importers.gerber

Gerber (RS-274X / X2) + Excellon + a KiCad job file (.gbrjob): the fabrication
data of a board, imported into the same raw form as the KiCad reader, so
board.Board resolves both alike.

    raw = GerberBoard('fab/board-job.gbrjob', pos='fab/board-top.pos')

  stack    the job file's MaterialStackup (copper, dielectric, solder mask)
  copper   every copper Gerber the job lists: draws with any aperture (the
           convex hull of the start and end apertures), arcs (G02 / G03, G75),
           flashes (C, R, O, P and aperture macros: primitives 1, 4, 5, 20, 21
           with variables and arithmetic - KiCad's RoundRect / RotRect / Outline
           / FreePoly), regions (G36 / G37), dark / clear polarity (LPD / LPC);
           X2 net attributes (TO.N) give the nets
  tracks   draws with a circular aperture (centre line and width), for the line
           model
  vias     the plated drill files; the layer span is the X2 file attribute
           (TF.FileFunction,Plated,<from>,<to>)
  outline  the Profile Gerber (Edge.Cuts), if the job lists one
  ports    the pick-and-place file: components with Value or Reference P<n> (a
           Gerber has no footprint fields: a port on an inner layer is a
           setting, --port P2@x,y,In2.Cu,rotation)
Coordinates are turned into KiCad's (mm, y down), the raw form every importer
produces.
class kicad2ems.core.importers.gerber.GerberBoard(job, pos=None, drills=None)[source]
kicad2ems.core.importers.gerber.parse_excellon(path)[source]
Holes [(x, y, diameter)] in mm (y up), the X2 layer span (from, to) or
None, and whether plated.
kicad2ems.core.importers.gerber.parse_gerber(path)[source]
(copper {net: geometry}, draws [(points, round aperture diameter or None,
net)], X2 file attributes), in mm with y up (Gerber's own orientation).