Browse Source

Clearer DRC rule token name for hole_size.

6.0.7
Jeff Young 4 years ago
parent
commit
4c3954aea8
  1. 1
      common/drc_rules.keywords
  2. 2
      pcbnew/dialogs/panel_setup_rules.cpp
  3. 18
      pcbnew/dialogs/panel_setup_rules_help.md
  4. 4
      pcbnew/drc/drc_rule_parser.cpp

1
common/drc_rules.keywords

@ -8,6 +8,7 @@ disallow
footprint
graphic
hole
hole_size
hole_to_hole
inner
layer

2
pcbnew/dialogs/panel_setup_rules.cpp

@ -250,8 +250,8 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
"disallow "
"edge_clearance "
"length "
"hole "
"hole_clearance "
"hole_size "
"hole_to_hole "
"silk_clearance "
"skew "

18
pcbnew/dialogs/panel_setup_rules_help.md

@ -20,20 +20,20 @@
### Constraint Types
* annular_width
* annular\_width
* clearance
* courtyard_clearance
* diff\_pair\_gap
* diff\_pair\_uncoupled
* disallow
* edge_clearance
* edge\_clearance
* length
* hole
* hole_clearance
* silk_clearance
* hole\_clearance
* hole\_size
* silk\_clearance
* skew
* track_width
* via_count
* track\_width
* via\_count
<br><br>
@ -183,11 +183,11 @@ For the latter use a `(layer "layer_name")` clause in the rule.
(rule "Max Drill Hole Size Mechanical"
(constraint hole (max 6.3mm))
(constraint hole_size (max 6.3mm))
(condition "A.Pad_Type == 'NPTH, mechanical'"))
(rule "Max Drill Hole Size PTH"
(constraint hole (max 6.35mm))
(constraint hole_size (max 6.35mm))
(condition "A.Pad_Type == 'Through-hole'"))

4
pcbnew/drc/drc_rule_parser.cpp

@ -269,7 +269,7 @@ void DRC_RULES_PARSER::parseConstraint( DRC_RULE* aRule )
case T_clearance: constraint.m_Type = CLEARANCE_CONSTRAINT; break;
case T_hole_clearance: constraint.m_Type = HOLE_CLEARANCE_CONSTRAINT; break;
case T_edge_clearance: constraint.m_Type = EDGE_CLEARANCE_CONSTRAINT; break;
case T_hole: constraint.m_Type = HOLE_SIZE_CONSTRAINT; break;
case T_hole_size: constraint.m_Type = HOLE_SIZE_CONSTRAINT; break;
case T_hole_to_hole: constraint.m_Type = HOLE_TO_HOLE_CONSTRAINT; break;
case T_courtyard_clearance: constraint.m_Type = COURTYARD_CLEARANCE_CONSTRAINT; break;
case T_silk_clearance: constraint.m_Type = SILK_CLEARANCE_CONSTRAINT; break;
@ -283,7 +283,7 @@ void DRC_RULES_PARSER::parseConstraint( DRC_RULE* aRule )
case T_diff_pair_uncoupled: constraint.m_Type = DIFF_PAIR_MAX_UNCOUPLED_CONSTRAINT; break;
default:
msg.Printf( _( "Unrecognized item '%s'.| Expected %s." ), FromUTF8(),
"'clearance', 'hole_clearance', 'edge_clearance', 'hole', hole_to_hole',"
"'clearance', 'hole_clearance', 'edge_clearance', 'hole_size', hole_to_hole',"
"'courtyard_clearance', 'silk_clearance', 'track_width', 'annular_width', "
"'disallow', 'length', 'skew', 'diff_pair_gap' or 'diff_pair_uncoupled'." );
reportError( msg );

Loading…
Cancel
Save