Hi,
I have modified the attribute VALUE of a component but when in the SCH I do Project → update project library, the attribute keep the same old value. How to update it without delete and load a again the same component?
Gian Carlo
Hi,
I have modified the attribute VALUE of a component but when in the SCH I do Project → update project library, the attribute keep the same old value. How to update it without delete and load a again the same component?
Gian Carlo
Hi,
Just double-click on the symbol in the schematic and change its value accordingly. This value is not overwritten by “update project library” because you would loose any previously manually specified value. Therefore the VALUE specified in the library only applies to components newly added to a schematic.
And btw, I hope you did not add an attribute named “VALUE” to your component? This is not the way it is done, see Missing VALUE in schematic sourced BOM - #2 by ubruhin
Only the “Default Value” field of component should be filled, not an attribute named “VALUE”.
Hi ubruhin,
it seems that the VALUE attribute is always used by default, but I find it strange that it doesn’t get updated, since this value belongs to the component. I can understand this behavior for resistors, where the value can change, but in that case the MPN should also be updated.
For me, every component is unique — if I need 100 different resistor values, I have 100 different components; otherwise, I couldn’t distinguish their MPNs.
I treat two resistors from the same family but with different values as separate components.
It would be great to have a single component and choose the resistance value when placing it in the schematic, with the MPN automatically assigned according to the chosen value.
I’m not sure if this is possible in LibrePCB, but it would be a very useful feature to manage resistor or capacitor series with one component and MPNs linked to their values.
Exactly this is the way LibrePCB works. You have exactly one resistor component in the libraries (it’s called “Resistor” in our official libraries). Then you create one device for a whole resistor family. Within that device, you add every MPN with its corresponding RESISTANCE value. IIRC currently we only have generic resistor devices in our libraries (no MPN, no RESISTANCE) but you can easily create a device for yourself. Here’s an example of a capacitor device:
You can do exactly the same for resistors. When adding such a capacitor to the schematic, you can choose the exact MPN:
When you add any of those to the schematic, its value (CAPACITANCE in this case) is automatically filled, you don’t need to do anything manually:
The “update project library” does not change anything for this component in the schematic since the chosen MPN and CAPACITANCE are copied into the schematic when you add the component.
More information about the usage of those so-called “parts” is documented here.
Does that clarify things?