kicad: add description and datasheet fields

This commit is contained in:
King Kévin 2023-02-26 12:14:00 +01:00
parent feaee52376
commit ceeb101130
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ categories.each do |category|
library = {name: category, table: table, key: "name", symbols: "kicad_symbol", footprints: "kicad_footprint"}
library[:properties] = {description: "description"}
library[:fields] = []
library[:fields] << {name: "Description", column: "description", visible_on_add: false, visible_in_chooser: true, show_name: false, inherit_properties: true}
library[:fields] << {name: "Datasheet", column: "datasheet", visible_on_add: false, visible_in_chooser: true, show_name: false, inherit_properties: true}
(prop2view + dist2view).each do |prop|
next if prop[:property].start_with? "kicad_"
library[:fields] << {name: prop[:property], column: prop[:property], visible_on_add: false, visible_in_chooser: true, show_name: false, inherit_properties: true}