Does anyone have any hints for getting
- ‘Datasheet’ links
- Database description.
working within a KiCad database?
- I have a functioning KiCad link to a MariaDB database. I am using this to serve a number of ‘Views’ of my PartKeepr database for different component classes. (I can share the necessary sql if anyone is interested) The ‘Views’ pull part parameters into a single table which includes a number of parameters and a ‘Datasheet’ field. This is one line from my database
# part_id |
Description |
Name |
Manufacturer |
Capacitance |
Voltage Rating |
Case |
Symbols |
Footprints |
Datasheet |
443 |
Cap Tant Solid 1uF 10V R CASE 10% (2.05 X 1.3 X 1.2mm) Inward L SMD 2012-12 25 Ohm 125C T/R |
TAJR105K010RNJ |
AVX |
1 μF |
10V |
0805 |
Device:C_Polarized |
Capacitor_SMD:C_0805_2012Metric |
${KICAD_USER_DATASHEET_DIR}/b65b0354-12a9-11e8-a8e2-10ddb1f0c774 |
As you can see Datasheet
is set to ${KICAD_USER_DATASHEET_DIR}/b65b0354-12a9-11e8-a8e2-10ddb1f0c774
within the database.
But when I view this in the ‘Choose Symbol’ dialogue, I find the Datasheet is still set to '~" although all the other parameters are transferred correctly.
This is the relevant section of my .kicad_dbl file.
I have tried both with ‘datasheet’ explicitly defined (as here) and omitted. I have also tried including the datasheet as a field definition, again with no luck.
... {
"name": "Capacitors_Tantalum",
"description": "Sort these bad boys out",
"table": "capacitors_tantalum",
"key": "part_id",
"symbols": "Symbols",
"datasheet": "datasheet",
"footprints": "Footprints",
"fields": [
{
"column": "Description",
"name": "Description",
"visible_on_add": false,
"visible_in_chooser": false,
"show_name": false
},
{
"column": "Name",
"name": "MPN",
"visible_on_add": true,
"visible_in_chooser": true
},
{
"column": "Manufacturer",
"name": "Manufacturer",
"visible_on_add": false,
"visible_in_chooser": true
},
{
"column": "Capacitance",
"name": "Value",
"visible_on_add": true,
"visible_in_chooser": true
},
{
"column": "Value",
"name": "Value",
"visible_on_add": true,
"visible_in_chooser": true
},
{
"column": "Dielectric Type",
"name": "Dielectric",
"visible_on_add": true,
"visible_in_chooser": true
},
{
"column": "Tolerence",
"name": "Tolerence",
"visible_on_add": true,
"visible_in_chooser": true
},
{
"column": "Voltage Rating",
"name": "Voltage",
"visible_on_add": false,
"visible_in_chooser": true
},
{
"column": "Case",
"name": "Case",
"visible_on_add": false,
"visible_in_chooser": true
}
]
}, ...
${KICAD_USER_DATASHEET_DIR}/b65b0354-12a9-11e8-a8e2-10ddb1f0c774.pdf
resolves to a valid path - if I paste this into the symbol properties directly or into a web browser, it works as expected.
I have tried defining the datasheet both directly (file://blah.blah.blah.pdf
) and via path substitution (as above) but to no avail. Anyone got this to work with a clickable link to the datasheet?
- The ‘non database’ standard libraries have a description. eg Analog_ADC - ‘Analogue to digital converters’. Is it possible to set a library description for a database library?