[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: Netmask operation
- To: bumpelo@comcast.net
 
- Subject: gEDA-user: Netmask operation
 
- From: Karel Kulhavý <clock@twibright.com>
 
- Date: Wed, 11 Feb 2004 15:55:52 +0000
 
- Cc: geda-user@geda.seul.org
 
- Delivered-to: archiver@seul.org
 
- Delivered-to: geda-user-outgoing@seul.org
 
- Delivered-to: geda-user@seul.org
 
- Delivery-date: Wed, 11 Feb 2004 10:56:24 -0500
 
- In-reply-to: <021020042135.27228.401c@comcast.net>; from bumpelo@comcast.net on Tue, Feb 10, 2004 at 09:35:51PM +0000
 
- References: <021020042135.27228.401c@comcast.net>
 
- Reply-to: geda-user@seul.org
 
- Sender: owner-geda-user@seul.org
 
- User-agent: Mutt/1.2.5.1i
 
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 $_;
        }
}