# Altium: how to assign a net class to unconnected pins?

I have PCB with a clearance rule for nets that can be exposed for higher voltages:

In the schematic I put a blanket around the area I need to be assigned as higher voltages nets (I called this class "Line"):

However the unconnected pin (pin 12 of K2 relay) has no net assigned - no net class consequently. So in the topology the clearance is not corret:

Until I put some arbitrary net label (NC1).

This can be solved for simple cases like mine. But if there will be an IC with many unconnected pins needed to have a net class - it will be a tricky thing.

Any thoughts?

UPDATE

As Matt suggested I tried to put Net Class directive directly to the pin as the following: strange but this didn't work, the pin still has wrong clearance.

• Does putting a directive assigning the pin to a class not work? – Matt Young May 13 '19 at 14:10
• Does the clearance rule work if you use a pad class for the pad instead of a net class for the net? – The Photon May 13 '19 at 16:16
• @MattYoung please see the UPDATE – Roman Matveev May 13 '19 at 18:43
• @ThePhoton, there is no such directive in the chematic editor. Could you make your idea more clear? – Roman Matveev May 13 '19 at 18:44
• Because the pin is "No Net" I don't think you can put a Net Class on it unless you can change all "No Net" pins to have that class (but that's probably not what you want). You can assign pad classes in the layout editor, or maybe in the pcb library editor. – The Photon May 13 '19 at 18:56

1. Add an additional rule that looks for non-connected pads and give them additional spacing, using the custom query ((Not InAnyNet) And IsPad)1.