← Back to team overview

kicad-developers team mailing list archive

Re: Macro expansion in module text

 

Hi Lorenzo,

Thanks for sorting this out, it'll make a great difference for my next
board!

Best Regards,

Brian.
On 4 Oct 2014 16:26, "Lorenzo Marcantonio" <l.marcantonio@xxxxxxxxxxxx>
wrote:

> Sorry about the delay, we had the automechanika fair and related stuff
> to handle :P
>
> In fact the patch is quite simple (I already did the biggest changes...)
>
> It handles % sequences in user text primitives inside modules
> (usefulness already debated); now it recognizes:
>
> %% for a plain %
> %R inserts the reference
> %V inserts the value
>
> Obviously it can be extended to insert other stuff (has to be available
> from the module class, however).
>
> The only issue is repainting, since it insert a dependency between
> unrelated fields: when you change reference or value the user fields
> using them are not updated until the next redraw. Shouldn't be a big
> problem, however.
>
> Extensive testing is, as usual, appreciated.
>
> Have fun
>
> --
> Lorenzo Marcantonio
> Logos Srl
>
> _______________________________________________
> 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