← Back to team overview

kicad-developers team mailing list archive

Re: D_PAD contributing to solder mask

 

Hi Mário-

Jeff is correct.  You can also use the IsPadOnLayer() for this purpose
because it defaults to IsOnLayer() when the pad hasn't been automatically
removed.

IsOnLayer will tell you if the object passes through the copper layer, or
has a technical layer selected.
IsPadOnLayer will return false if the copper annulus of a through-hole pad
has been removed by the 'Remove unconnected pads' logic  Otherwise, it will
return the result of `IsOnLayer()`

It's good practice to use IsPadOnLayer for D_PADs unless you want to know
if the pad passes through a layer.

Best-
Seth

On Sun, Sep 6, 2020 at 11:13 AM Mário Luzeiro <mrluzeiro@xxxxx> wrote:

> I was using IsPadOnLayer ..
> What should be the differences for use IsPadOnLayer vs IsOnLayer ?
>
> ________________________________________
> From: Jeff Young <jeff@xxxxxxxxx>
> Sent: 06 September 2020 19:04
> To: Mário Luzeiro
> Cc: kicad-developers@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Kicad-developers] D_PAD contributing to solder mask
>
> IsOnLayer( F_Mask ) || IsOnLayer( B_Mask )
>
>
>
> On 6 Sep 2020, at 18:43, Mário Luzeiro <mrluzeiro@xxxxx<mailto:
> mrluzeiro@xxxxx>> wrote:
>
> Hi all,
> what is the correct way to check that a D_PAD is contributing to solder
> mask?
> eg: on the Pad Properties editor, the F.Mask or B.Mask is ticked..
>
> Mario
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:
> kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> 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
>


-- 
[image: KiCad Services Corporation Logo]
Seth Hillbrand
*Lead Developer*
+1-530-302-5483‬ <+12126039372>
Davis, CA
www.kipro-pcb.com    info@xxxxxxxxxxxxx

Follow ups

References