Edit component properties as a table


#1

I’m not sure if I’m being very slow here, but is there some way to quickly edit fields of components in eeschema?

I’ve got my schematic and board design done and the prototype board is out for manufacture. Now while I wait for it, I’d like to go through the schematic and add some more info to each component - eg assign a storage location for each component type so that when I order components and put them in a storage system, I know where to find each one.

Do I really have to edit each component, click the ‘Add a Field’ button, type in the field name (hoping I manage this without mistakes), type in the value of the field and click okay for every component on the board? Surely there’s a better way?

I gather that a big rewrite of eeschema is on the way, so asking after a Python interface for eeschema files is a bit hopeful - but if it existed, one way would be to write a script that exports fields to a spreadsheet and the reimports the field values, keyed on component ref. But it seems no such interface exists (?)

Or am I better off keeping this sort of info outside KiCAD?

Thanks for any suggestions.


How do I save all component fields in library part?
Relating pins and pads [KiCAD pitfalls for newcomers]
Association between Schematic Symbol and real component parts
#2

Well welcome to the club. There are lots of threads on this forum concerning very similar topics.

The closest one i could find:

Or you might want to look into KiCost:

If both of them are useless for you: just search this forum with the search term “bom”.
You will find loads of stuff.


#3

Hi, Tom. KiField may be close to what you want.


#4

This is where the whole idea of personal libraries comes into play. You only use parts in your library, and when you create those parts, you add the necessary field to the symbol. This way, when you place the parts on the schematic, they already include your “location” field, and that information gets put into the BOM.

Editing a schematic to add this information is the hard way to do it.


#5

There is some work in progress to add spreadsheet style editing feature to eeschema.

https://lists.launchpad.net/kicad-developers/msg26742.html

So we might see that implemented in one of the future versions of KiCad. The biggest issue seems to be undo/redo support.

Adding new fields to all components can be done using “Preferences” -> “Schematic Editor Options” -> “Default Fields” so you don’t have to manually add your custom fields to all the components. Still you have to edit each component and add the content of the field in question.


#6

Hi,

Another option might be to use KiCad partslist editor:

https://github.com/BPJWES/KiCAD_Partslist_editor

This tool parses KiCad schematic files (including hierarchical schematics), which can be exported to a .csv file.

You can edit this .csv file in your favourite spreadsheet editor.

This modified .csv can then be reloaded into KiCad Partslist-editor to add the changes into the KiCad schematic files


#7

Kicad Part-list Editor works very nicely, however I have one problem with it.

It appears that when a CSV is re-imported the fields in each component must exist.

For example in some of my components I have price fields, but not all. This happened because I created some of my schematic before I was aware of being able to add such things. So, when I export the parts-list I can add those prices using Excel and save it as a CSV again. When the CSV gets imported into the schematic only those parts that already had the price fields get updated.

Anyone know if it is possible to create fields when they do not exists?
Thanks,
Sid