kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #33300
Run-time expression eval in text fields
There’s a bug[1] that complains that the user can’t reposition a reference or value differently for different units that might be different sizes. (You can do this on the eeschema canvas, but not in the library, so you have to do it each time you use one of the units.)
It occurred to me that one could accomplish this using existing stuff if we had a (very simple) evaluator for text fields at runtime. They could then add a text field to their units (marked shared-between-units or not as required), and set the value to something like “%REF” or “%VALUE”. The expression evaluator could even be as simple as doing those two replacements, or maybe looking up any field value or something.
Anyway, I’m not sure this issue warrants it, but if it had other uses it might be worth doing (whereas adding separate REF and VALUE fields per unit and giving them shared-between-units flags, etc., would be more work than this bug probably warrants).
Thoughts?
[1] https://bugs.launchpad.net/kicad/+bug/1334502
Follow ups