I have just migrated to version 7 after using version 5 and earlier.
I had, several years back, written a C++ program to open up and create BOMs from the schematic. I embed stock codes within symbols, other than things like 0603 resistors caps etc (as I don’t want to have to have separate symbol for each value of cap, resistor etc). These are calculated from within my C++ code by a lookup file of symbol and value.
However, I’m having a problem with version 7 with the complete rewrite of how the database is represented by ASCII. There’s a thing where sometimes the ref des is in this line:
(property “Reference” “Cxxx” etc etc
Where xxx is the reference designator.
However, sometimes the reference designator is exasperatingly not in that line and it’s in a line like this:
(reference “X201”) (unit 1)
which is in the “(instances” section of the symbol.
I can’t just look for the latter line because, for some reason, sometimes, there are multiple values in the instance section of symbols; examples that aren’t actually in the schematic at all.
Does anyone know how to force the ref des that appears in the schematic within kicad itself to put the proper reference designator figure in please? Or how to get rid of the instances where they are not in the actual schematics?
The former is MUCH preferred though.
As an example, all three symbols here do not have their ref des in the
(property “Reference”
line. They have things like:
(property “Reference” “X?” (at 257.81 109.22 90)
Thanks!