Expand description
Bake canonical FabView virtual layers into standalone KiCad .kicad_mod footprints.
Mirrors Python kicad_monkey.fab.virtual._bake_footprint:
- Wraps the
.kicad_modin a transient 1-footprintkicad_pcbat(0, 0, 0)onF.Cuso all pad, component, polarity, diode, and passive heuristics run through the exact sameFabViewData+virtual_layersengine as boardvdoc. - Cleans legacy documentation-layer artwork using lossless byte-range edits shared with
crate::bake::clean_pcb_doc_layers_source. - Emits native footprint-local
fp_line,fp_arc,fp_circle, andfp_polyprimitives before the.kicad_modclosing parenthesis while preserving all untouched bytes.
Structs§
- Bake
Footprint Virtual Layers Options - Options controlling
bake_virtual_layers_to_footprint_source. - Bake
Footprint Virtual Layers Report - Result summary for baking virtual layers into one standalone
.kicad_modfootprint.
Constants§
- DEFAULT_
FOOTPRINT_ VIRTUAL_ LAYERS - Default 6 footprint-applicable canonical virtual layers (top-side authored in
.kicad_mod). - FOOTPRINT_
SUPPORTED_ VIRTUAL_ LAYERS - All 7 canonical virtual layers supported for standalone
.kicad_modfootprints.
Functions§
- bake_
virtual_ layers_ to_ footprint_ source - Bake selected virtual layers from a pre-built
FabViewDatainto standalone.kicad_modsource text as nativefp_line/fp_arc/fp_circle/fp_polyprimitives. - build_
footprint_ fab_ view - Build a canonical single-component
FabViewDatafor a standalone.kicad_modfile, returning(fab_view, footprint_name, synthetic_designator). - build_
footprint_ pad_ outline - Compute a clean pad-envelope outline for a standalone footprint (used as fallback when no 3D STEP HLR outline is available).
- clean_
footprint_ doc_ layers_ source - Clean legacy documentation-layer artwork and hide visible Reference/Value fields on
selected layers of a standalone
.kicad_modfile, preserving all untouched bytes. - detect_
footprint_ layer_ collisions - Detect existing footprint graphics or user texts occupying any target layer in
layer_map. - footprint_
glob_ match - Glob match helper exposed for footprint library
--filterpatterns. - infer_
synthetic_ designator - Infer a synthetic designator for a standalone library footprint (typically
REF**). - resolve_
footprint_ virtual_ layer_ key - Resolve a footprint virtual layer key (including side-agnostic short aliases).