Thanks for the clarifications!

________________________________________
From: Seth Hillbrand <s...@kipro-pcb.com>
Sent: 06 September 2020 19:51
To: Mário Luzeiro
Cc: Jeff Young; kicad-developers@lists.launchpad.net
Subject: Re: [Kicad-developers] 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 
<mrluze...@ua.pt<mailto:mrluze...@ua.pt>> wrote:
I was using IsPadOnLayer ..
What should be the differences for use IsPadOnLayer vs IsOnLayer ?

________________________________________
From: Jeff Young <j...@rokeby.ie<mailto:j...@rokeby.ie>>
Sent: 06 September 2020 19:04
To: Mário Luzeiro
Cc: 
kicad-developers@lists.launchpad.net<mailto:kicad-developers@lists.launchpad.net>
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 
<mrluze...@ua.pt<mailto:mrluze...@ua.pt><mailto:mrluze...@ua.pt<mailto:mrluze...@ua.pt>>>
 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@lists.launchpad.net<mailto:kicad-developers@lists.launchpad.net><mailto:kicad-developers@lists.launchpad.net<mailto:kicad-developers@lists.launchpad.net>>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : 
kicad-developers@lists.launchpad.net<mailto:kicad-developers@lists.launchpad.net>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


--
[KiCad Services Corporation Logo]
Seth Hillbrand
Lead Developer
+1-530-302-5483‬<tel:+12126039372>
Davis, CA
www.kipro-pcb.com<https://www.kipro-pcb.com/>    
i...@kipro-pcb.com<mailto:i...@kipro-pcb.com>
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to