Hi All,
Thanks for the replies. Apologies for not posting the relevant files - as I new user it seems I’m not allowed to upload files.
The most recent thing I have tried is text from a CSV file - here are the contents of the files:
{
“meta”: {
“version”: 0
},
“name”: “My Database Library”,
“description”: “A database of components”,
“source”: {
“type”: “odbc”,
“dsn”: “Text”,
“username”: “I’ve removed this for privacy”,
“password”: “”,
“timeout_seconds”: 2,
“connection_string”: “”
},
“libraries”: [
{
“name”: “Test”,
“table”: “pokpokpok.tab”,
“key”: “Part ID”,
“symbols”: “Symbols”,
“footprints”: “Footprints”,
“fields”: [
{
“column”: “Value”,
“name”: “Value2”,
“visible_on_add”: false,
“visible_in_chooser”: true,
“show_name”: true,
“inherit_properties”: true
}
]
}
]
}
Part ID Symbols Footprints Value
POK-UN-001 Device:Ammeter_AC Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal 10
POK-UN-002 Device:Ammeter_DC Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal 20
POK-UN-003 Device:Antenna Capacitor_THT:CP_Axial_L10.0mm_D4.5mm_P15.00mm_Horizontal 30
POK-UN-004 Device:Antenna_Chip Buzzer_Beeper:Buzzer_12x9.5RM7.6 40
The file contents won’t copy/paste properly, but each field is separated by a tab. I can read this ODBC data source into Excel with no problems.
Gkeeth:
Thanks for the link to the example - i will try that.
I’ve read the article you link to, but i still can’t see what’s wrong!
Sqlite will probably be my next thing to try - it doesn’t matter what data source we use, as long as it’s easy to edit.
Each of the data sources I mentioned require their own ODBC driver, and each has behaved the same. I don’t think we really need a real (relational) database, a flat file should do everything we need.
Claudio:
Yes, it’s behaving like there is no symbol in the database - but there is! As you can see, I have just picked the first few symbols from the “Device” library in my example. I have previously tried with my own custom library and had the same result.
Thanks also for your example - I will study it.
I believe I have done everything you say correctly: Named both a schematic symbol and a PCB footprint in the DB. The symbols seem to be ok because I can place them directly from their original library. However, I must be getting something wrong!
KiCad version info is:
Application: KiCad x64 on x64
Version: 7.0.5, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: May 27 2023 02:48:13
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
KICAD_SPICE=ON