[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: Netmask operation



Hello

I suggest you to add an Action into PCB that takes multiple pins' diameter,
adds some constant (4 for example) and puts the value into the diameter
of the soldermask.

Meanwhile I send my perl code that does this with the whole schematic
in a pipeline (stdin-stdout) operation:

#!/usr/bin/perl

while(<STDIN>){
        if (($l1, $diam, $l2, $mask, $l3) = /(\s*Pin\(\s*\S*\s*\S*\s*)(\S*)(\s*\
S*\s*)(\S*)(\s*.*)/)
        {
                $mask=$diam+4;
                print $l1,$diam,$l2,$mask,$l3;
        }
        else
        {
                print $_;
        }
}