kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #30522
Re: [PATCH] Math expression support for pad editor.
-
To:
Russell Oliver <roliver8143@xxxxxxxxx>, kicad-developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Tomasz Wlostowski <tomasz.wlostowski@xxxxxxx>
-
Date:
Thu, 31 Aug 2017 15:58:59 +0200
-
In-reply-to:
<CAEKH5oU6d=_+2atUyWjtGOLV0DadiTsBinm33An_bfjPja+ceg@mail.gmail.com>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
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
Follow ups
References