devbisme / KiField

Edit/insert/delete part fields in KiCad schematics or libraries using a spreadsheet.
MIT License
70 stars 27 forks source link

enhancement: combine references with identical fields into a single line #31

Closed mignon-p closed 7 years ago

mignon-p commented 7 years ago

It would be great to have an option that would combine references with identical fields into a single line. For example,

R3,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,470
R4,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,470
R5,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,470
R6,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,470
R7,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,10k
R8,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,10k

would become:

R3;R4;R5;R6,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,470
R7;R8,,Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal,10k

That would make it easier to add things like manufacturer part number, which would be the same for identical components, rather that having to enter it separately for each reference.

kasbah commented 7 years ago

I think you are looking for the --group option.

  --group, -g           Group components with the same field values into
                        single lines when inserting into a spreadsheet or
                        CSV/TSV. (Default is to have one component per line)
mignon-p commented 7 years ago

Awesome, thank you! That seems to be missing from the usage page. :)