delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/02/04/14:42:57

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: Debian amavisd-new at mail.linetec.nl
Message-ID: <1d6c72b8-f21c-477b-83c3-46965d24f29f@linetec.nl>
Date: Sun, 4 Feb 2024 20:40:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [geda-user] Solder mask commands?
To: geda-user AT delorie DOT com
References: <CAC4O8c_FTDR8o603fWdhz0Rh_OgKybeTKuDM5cnJXNknQCYLoQ AT mail DOT gmail DOT com>
<0b116853-49cd-4af3-9770-83f61a026778 AT linetec DOT nl>
<20240204151304 DOT 3E77986212AA AT turkos DOT aspodata DOT se>
From: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
In-Reply-To: <20240204151304.3E77986212AA@turkos.aspodata.se>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hello Karl,

Op 04-02-2024 om 16:13 schreef karl AT aspodata DOT se [via geda-user AT delorie DOT com]:
> Richard:
> ...
>> Question: is it possible to set the solder mask gap to match pad sizes
>> for all elements in one go?
> Yes, with a simple script.
>
> ...
>> The only alternative I see is to create a script that seeks out lines
>> with pad elements, then takes the thickness, and copies that to the mask
>> parameter - but that is quite a bit of work, especially given that I'll
>> be migrating to pcb-rnd pretty soon.
>   Do all of your Pad lines look like this, i.e. they have 10 arguments
> between the []'s ?
>
> $ grep -i Pad styrkort.pcb | head -1
>          Pad[-1.3000mm 0.9500mm -0.9000mm 0.9500mm 1.0000mm 0.5000mm 1.4000mm "1" "1" "onsolder,square"]
> $

Yes, my pcb file has pad definitions with the 10 arguments, with #5 
being the thickness (here 1.0000mm) and #7 the mask 'thickness' (here 
1.4000mm).

> Try attached script.

Yes, it works, great! And I also succeeded in adding some lines of code 
to do the same with through-hole pins.

Thanks, this saves me quite a bit of time!

Regards,

Richard

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019