CGrassin/kicad-pinout-generator

Allow multiple component selection

CGrassin opened this issue · 2 comments

Allow to select multiple components at once. The behavior depends on the format:

  • Formats with "structures" shall generate one structure per component, e.g. Python below. Formats: C enum, Python dict, HTML Table, MD Table.
pinout_U1 = { pin1: .....}
pinout_U2 = { pin1: .....}
  • Formats without structures shall instead display an error message "Multiple component selected (). Select only one to generate an output with this format." Formats: VHDL, C #define.

Notes:

  • TBC how to handle CSV/List formats.
  • This evolution is useful for documentation format, especially on connectors (e.g. #1).
  • Major code refactoring is required to implement this.

Added with d455a5a

Still TBC on CSV and List.

Fixed remaining TBC with b8e69be : for both CSV and List, a new column with the component reference is added when there is a multiple selection.
Note: the current implementation means that the output format is different when in multiple selection compared to single selection.