# Altium: Polygon Pour Direct Connect on Vias, Relief Connect on Pads

I'm not even sure if this should go here on the EE StackExchange or if there's a CAD board, but I'm posting it here just in case. I am working on a 2-sided SMD PCB that has vias and SMD pads. On the pads (which I will be soldering) I need to have a relief connect for the polygon pour of the same net, but I need a direct connection on the Vias of the same net. I currently have all Relief connects:

But in the Design Rules I cannot find an option that would set Vias aside from component pads:

I considered adding all of the vias to a class, but I can't seem to be able to do that either. To make this even more difficult, I have two QFNs with thermal pads that use built-in vias to stitch through the board. These should NOT have a direct connection to the polygon as it will make it much more difficult to solder.

Is there a way to add, say, selected vias to a class? I just need to set a rule for the Polygon Connect to use direct connections over specific vias, and relief connections over the rest of the PCB. Thanks!

• Sometimes the distinction between vias and pads is a bit infuriating. In this case, you can "convert vias to free pads" and then add those pads to a class. – The Photon Apr 16 '15 at 16:23
• Thanks for the reply, I was about to try this but when brhans' answer came up, it seemed easier to implement so I did that one instead – DerStrom8 Apr 16 '15 at 16:32
• For anyone else reading this, @ThePhoton's suggestion works too, just requires a little more work =) – DerStrom8 Apr 16 '15 at 16:41
• Got back to altium after a couple of years of using Orcad. I have this idea this was buried in the settings somewhere or wasn't this done with queries somehow. But a simple google search saves hours of going over documentation.. – Barleyman Mar 23 '18 at 15:30

• Thank you so much! Did not know that query component was even there! Anyway, I ended up doing the following to exclude the vias on the thermal pads: isVia AND NOT (InComponent('U2') OR InComponent('U3')) – DerStrom8 Apr 16 '15 at 16:32