Skip to content

Add Centroid File Generation Options for PCB Output#6

Open
vikulin wants to merge 5 commits intosparkengineering:mainfrom
vikulin:centroid_files
Open

Add Centroid File Generation Options for PCB Output#6
vikulin wants to merge 5 commits intosparkengineering:mainfrom
vikulin:centroid_files

Conversation

@vikulin
Copy link

@vikulin vikulin commented May 8, 2025

Summary

This PR introduces support for generating centroid (component placement) files from a KiCad PCB, expanding the PCB export capabilities of the tool. The following new configuration options are added:

  • pcb_centroids: Enables/disables centroid file generation.
  • pcb_centroids_file: Sets the output filename for the centroid file (default: cnt.pos).
  • pcb_centroids_format: Specifies the output format (ascii by default).

Changes

  • Updated action.yml to include the new inputs.
  • Modified the README to document the new options in the configuration table.

Motivation

Centroid files are essential for automated pick-and-place processes during PCB assembly. Adding support for their generation simplifies integration into manufacturing workflows.

Notes

  • Centroid file output currently defaults to ascii format. Support for additional formats can be extended in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant