Add isDiffPair() to custom rule syntax examples.

Fixes https://gitlab.com/kicad/code/kicad/issues/7746
This commit is contained in:
Jeff Young 2021-02-27 19:44:06 +00:00
parent ccba4b1462
commit 2606ecc619
1 changed files with 11 additions and 0 deletions

View File

@ -156,3 +156,14 @@ For the latter use a `(layer "layer_name")` clause in the rule.
(rule "Max Drill Hole Size PTH"
(constraint hole (max 6.35mm))
(condition "A.Pad_Type == 'Through-hole'"))
# Specify a larger clearance around a particular diff-pair
(rule "dp clearance"
(constraint clearance (min "1.5mm"))
(condition "A.NetClass == 'diffPairClass' && B.NetClass != 'diffPairClass'"))
# Specify a larger clearance around any diff-pair
(rule "dp clearance"
(constraint clearance (min "1.5mm"))
(condition "A.isDiffPair() && A.NetClass != B.NetClass"))