Configuration to migrate to KiCad 10 native variants

A test/example of how to use KiCad 10 assembly variants

Configuration to migrate to KiCad 10 native variants

This directory contains a KiBot configuration you can use to migrate KiBoM, iBoM or KiCost variants to KiCad 10 native variants.

You must:

  1. Edit the configuration file to define your current variants. Just copy them to this file
  2. Copy your PCB and Schematic to this directory
  3. Run KiBot on this directory
  4. Copy the resulting project found in variants_ki10

For more information look in the export_variants.kibot.yaml file.

Here is a copy, that might be outdated:

# This config was used to export the KiBoM variants to native KiCad 10 variants
kibot:
  version: 1

globals:
  time_reformat: false
  # Disable changes to the PCB based on the variant
  cross_footprints_for_dnp: false
  remove_solder_paste_for_dnp: false
  remove_adhesive_for_dnp: false
  remove_3D_models_for_dnp: false

# Put your variants definitions here
variants:
  - name: 'default'
    comment: 'Minimal PCB no USB'
    type: kibom

  - name: 'USB'
    comment: 'Full board'
    type: kibom
    file_id: _USB
    variant: USB

  - name: 'XTAL'
    comment: 'No USB, but crystal included'
    type: kibom
    file_id: _XTAL
    variant: XTAL

# These outputs do the job, the result is stored in `variants_ki10`
outputs:
  - name: 'sch_ki10_export'
    comment: "Schematic w/all variants"
    type: sch_variant
    dir: variants_ki10
    options:
      variant: default
      copy_project: true

  - name: 'pcb_ki10_export'
    comment: "PCB w/all variants"
    type: pcb_variant
    dir: variants_ki10
    options:
      variant: default
      copy_project: true
      output: "%f.%x"