From e32c113249afda9efdff3a6e71322af98b36b36c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 26 Sep 2020 10:20:10 +0100 Subject: [PATCH] A bit more syntax help for layers. --- pcbnew/dialogs/panel_setup_rules_help.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pcbnew/dialogs/panel_setup_rules_help.txt b/pcbnew/dialogs/panel_setup_rules_help.txt index 113d39b674..619c6ac5e0 100644 --- a/pcbnew/dialogs/panel_setup_rules_help.txt +++ b/pcbnew/dialogs/panel_setup_rules_help.txt @@ -37,6 +37,11 @@ pad hole graphic text zone (constraint clearance (min 1.5mm)) (condition "A.NetClass == 'HV'")) +(rule HV + (layer outer) + (constraint clearance (min 1.5mm)) + (condition "A.NetClass == 'HV'")) + (rule HV_HV # wider clearance between HV tracks (constraint clearance (min "1.5mm + 2.0mm")) @@ -88,5 +93,9 @@ A.memberOf('') # True if A exists on the given layer. The layer name can be # either the name assigned in Board Setup > Board Editor Layers or # the canonical name (ie: F.Cu). +# +# NB: this returns true if A is on the given layer, independently +# of whether or not the rule is being evaluated for that layer. +# For the latter use a (layer "layer_name") clause in the rule. A.onLayer('')