Add more attributes to capacitor components - #138
Draft
ubruhin wants to merge 1 commit into
Draft
Conversation
ubruhin
force-pushed
the
137-more-capacitor-attributes
branch
from
February 21, 2026 12:49
2330d1c to
1a67872
Compare
ubruhin
force-pushed
the
137-more-capacitor-attributes
branch
from
May 29, 2026 22:00
1a67872 to
c9b5b41
Compare
- Add attributes VOLTAGE_RATING (unipolar + bipolar) and DIELECTRIC (bipolar only). - Also add these attributes and MPN to the component's default value to make them appear in schematics
ubruhin
force-pushed
the
137-more-capacitor-attributes
branch
from
May 29, 2026 22:02
c9b5b41 to
a02389d
Compare
Contributor
Has this been fixed by LibrePCB/LibrePCB#1807? |
Contributor
Author
I think so, thus I just updated this PR yesterday. I'll need to test, review and think about this again to decide if it is now ready to merge. Also I think we should still wait a bit with merging this. There are still many people using LibrePCB 2.0. With this version, it would be bad to get the updated capacitors as the editor won't behave nicely with it. It's not a big deal for less used components, but the capacitor is one of the most used component so it would be very bad user experience. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
RATED_VOLTAGE(unipolar + bipolar) andDIELECTRIC(bipolar only).Closes #137
DATASHEETS / REFERENCES
None
OPEN QUESTIONS / UNRESOLVED ISSUES
The schematic editor does not handle the new default value very well when adding new capacitors to the schematic, thus we should not merge this yet...
CHECKLIST
¹ Library Conventions: https://docs.librepcb.org/#libraryconventions
² Minor version bump if only metadata was modified (e.g. "0.1" -> "0.1.1"), major version bump if functional changes were made (e.g. "0.1" -> "0.2")
³ CC0 Public Domain License: https://en.wikipedia.org/wiki/CC0