Custom Rules: Thermal Via in Pad

I’m sure I’m not the first one to struggle with this but I searched the forum without any success.

Here’s the issue: The thermal vias in pads shipped with KiCad footprints have a hole diameter of 0.2mm. Many fab houses only produce 0.3mm an larger, except when it is a via in a pad where the positioning doesn’t have to be that exact.

I want to create a custom rule for that, but I’m not sure it is even possible.

Currently I have this:

(rule "thermal_via_inside_pad"
    (condition "A.Type == 'Pad'")
    (constraint hole_size(min 0.2mm))
)

However, this applies to all through-hole pads, not just those that are placed on top of an SMD pad. Is there a way to detect if a PTH is placed on top of an SMD pad?

Pretty sure this is along similar lines . . .

1 Like

thank you, seems like it. However, it does not solve my problem :smiley:

Nope it doesn’t, just wanted you to know you are not alone :wink:

1 Like

That being said, at least for JLC the described scenario is irrelevant. I’ve seen some fabs though where they stated something like this. Not sure which though