# Example KiBot config file
kibot:
  version: 1

global:
  environment:
    # Relative to the PCB file
    models_3d: '../../data/metrico/'
    define_old: true
  aliases_for_3d_models:
    - name: ALIAS1
      value: '3d/1'
    - name: ALIAS2
      value: '3d/2'

import:
  - file: battery_pack_sub_pcbs.kibot.yaml

outputs:
  - name: 'position'
    comment: "Pick and place file"
    type: position
    dir: positiondir
    options:
      format: ASCII   # CSV or ASCII format
      units: millimeters  # millimeters or inches
      separate_files_for_front_and_back: false
      only_smd: true

  - name: result
    comment: 'Copy files from source, output and 3D models'
    type: copy_files
    dir: 'test.%x'
    options:
      # link_no_copy: true
      kicad_3d_url: 'http://localhost:8000/'
      files:
        - source: tests/board_samples/kicad_5/test_v5.*
          dest: source
        - source: tests/board_samples/kicad_5/deeper.sch
          dest: source
        - source: tests/board_samples/kicad_5/sub-sheet.sch
          dest: source
        - source: position
          source_type: output
          dest: my_position
        - source: position
          source_type: output
        - source: positiondir/*.pos
          source_type: out_files
          dest: my_position2
        - source: '*.wrl'
          source_type: 3d_models
          dest: 3d_models
          save_pcb: true
