EEschema symbol management possible bug

I think to have found a bug related to the management of the symbol file name and the field Value in the Symbol Editor.

I was looking to understand why changing the Value in Symbol Editor changes also the symbol name (that in my opinion is very very wrong). So I tried to manually change the content of the corresponding lib. I reported above the original and the modified text relevant part. Line F1 contains the modified text:

original:

R_1K0_R0402

DEF ~R_1K0_R0402 R 0 10 N N 1 F N
F0 “R” 50 25 50 H V L CNN
F1 “R_1K0_R0402” 50 -275 50 H I L CNN
F2 “LibPCBnew:R0402” 375 -350 50 H I C CNN
F3 “C:\Dati\Micron\R&D\Datasheets\Resistors\Multicomp-MCMR04X435_JTL-datasheet.pdf” 1650 -475 40 H I C CNN
F4 “1/16W” 50 -125 50 H I L CNN “Power”
F5 “1K0” 125 -50 50 H V C CNN “Component Value”
F6 “50V” 50 -200 50 H I L CNN “Voltage”

modified:

R_1K0_R0402

DEF ~R_1K0_R0402 R 0 10 N N 1 F N
F0 “R” 50 25 50 H V L CNN
F1 “1K0” 50 -275 50 H I L CNN
F2 “LibPCBnew:R0402” 375 -350 50 H I C CNN
F3 “C:\Dati\Micron\R&D\Datasheets\Resistors\Multicomp-MCMR04X435_JTL-datasheet.pdf” 1650 -475 40 H I C CNN
F4 “1/16W” 50 -125 50 H I L CNN “Power”
F5 “1K0” 125 -50 50 H V C CNN “Component Value”
F6 “50V” 50 -200 50 H I L CNN “Voltage”

so… seems to me that the Symbol Editor GUI takes the dats from the DEF line instead of F1 line to update the Value field. Unlink this management will help also to pass the correct Value to the Spice Value field (Edit Spice Model/Passive/Value).

Want to have some more fun?

Create a new field named ‘Value’ spelled exactly like it’s already spelled. Then, put an actual value in the field.

1 Like

I did not understand your suggestion. Do you mean a new Value field in the library to manage the symbol or anew Value field to manage the Spice Value?

OK, I understood and tested what you suggested… well these guys are totally crazy… anyway your suggestion works and the field Value of the symbol is “correctly” copied to the Spice Passive Value :slight_smile: :frowning:

2 Likes

General answer to the “i want value to be different from name”

This will be possible in v6 with the new file format anyways. Changing the current behavior in v5 might not be possible but you can add your voice to the bug https://bugs.launchpad.net/kicad/+bug/1827710 (marked invalid because well v6 will fix it anyways and the reporter added many other reports that where more precise as to what they wish for. Your usecase for spice is not present in the bug and your tests are not present)

Where may I find info about the changes to the library management in the v6 release? Because I need to plan how to manage my libraries in the mean time.

Is linked in the bug

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.