Clearance constraint between HV and floating pins

Hello all,

I’m looking for a custom rule that reduces the clearance of a HV net class (eg 1.5m) towards unconnected neighbouring pins of the HV connector. I found something in this topic but was incomplete for some reason:

(rule “0.1 cLeArAnce BeTWeen HV and floating pins”
(constraint clearance (min 0.2mm))
(condition " A.NetClass == ‘HV*’ && B.NetCl???

The floating pin is flagged as not connected. In the documentation I could not find how to detect such a flag or flags in general.

Regards,

Patrick
kicad 9.0.1

I suppose the condition continues with the assumption that each unconnected pin is attached to a netclass (with the netclass dialog pattern matching or schematic directive label), named for example “Nc”. So,

B.NetClass == 'Nc'

But you can also use NetName == 'unconnected*' because unconnected pins automatically get net names which begin with “unconnected”.

1 Like