kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #30544
Re: [PATCH] Math expression support for pad editor.
Hi,
I have tested the patch and I really like this feature. This automatic
variable assignment will sure come in handy.
How about adding a kind of scratch pad (a single line should do) to the
footprint editor so that one can add variables (measurements) given in
datasheets?
Like "c1=2.9; e=0.635" in the scratch pad and then in PosX field: "-c1/2 "
and PosY: "-1.5*e" in order to place the first pad.
- Michael
On Thu, Aug 31, 2017 at 3:58 PM, Tomasz Wlostowski <
tomasz.wlostowski@xxxxxxx> wrote:
> On 31.08.2017 15:27, Russell Oliver wrote:
> > Hi All.
> >
> > As a follow up to my earlier post, attached is a patch that implement
> > math expressions in the pad editor as well.
> >
> > A nifty feature is that the fields can be referenced from each other.
> > currently the fields are referenced by the following names.
> > - posx, posy, sizex, sizey, offsetx, offsetx, drillx, drillx.
>
> Hi Russell,
>
> Didn't have the time to check your patch yet, but I came up with an
> idea: add global variable support to the math parser, so that if you
> place a text anywhere in the design assigning to a variable (e.g.
> var=10), it will be updated in any of the expressions that reference it.
>
> Cheers,
> Tom
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References