# Component Attributes Enhancements

**URL:** <https://librepcb.discourse.group/t/component-attributes-enhancements/263>\
**Category:** Improvement Ideas\
**Created:** [August 29, 2020, 6:40pm UTC](https://librepcb.discourse.group/t/component-attributes-enhancements/263 "2020-08-29T18:40:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kravets-levko](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/kravets-levko/32/180_2.png) [@kravets-levko](https://librepcb.discourse.group/u/kravets-levko)\
**Post date:** [August 29, 2020, 6:40pm UTC](https://librepcb.discourse.group/t/component-attributes-enhancements/263/1 "2020-08-29T18:40:23Z")

</div>

Hello! I just started using LibrePCB recently, and it’s awesome app! And after using it for some time, I realized that I’d like to see some additional features there. All that requests come from actual schematic I tried to create. So, let’s go 😉

1. Numeric attribute type. Currently I use string, but the nature of the attribute I created is numeric (it’s a count), so I’d like to restrict possible values for the attribute.
2. Allow some simple math in attribute placeholder, e.g. `{{RESISTANCE / 2}}`. My live example: I created a component (that’s assembly) that has a few resistors inside, and there is a dependency: some of them have value R, others _must_ be R/2. Currently I use `{{RESISTANCE}}` and `½ × {{RESISTANCE}}` labels, but that looks ugly 🙄
3. It would be nice if Project -\> Update Library will also update attributes of already added components (e.g. if I edit my custom library and add attributes to component, and then update project - that new attribute won’t appear there).

Hope my ideas are reasonable enough. And thanks for a great product!

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [September 2, 2020, 8:05pm UTC](https://librepcb.discourse.group/t/component-attributes-enhancements/263/2 "2020-09-02T20:05:10Z")

</div>

Hi, and welcome! I like the idea of supporting simple expressions within attribute placeholders 🙂
