Clearer DRC rule token name for hole_size.

This commit is contained in:
Jeff Young 2021-08-13 16:18:56 +01:00
parent 3b26db745f
commit 4c3954aea8
4 changed files with 13 additions and 12 deletions

View File

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

View File

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

View File

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

View File

@ -269,7 +269,7 @@ void DRC_RULES_PARSER::parseConstraint( DRC_RULE* aRule )
case T_clearance: constraint.m_Type = CLEARANCE_CONSTRAINT; break; case T_clearance: constraint.m_Type = CLEARANCE_CONSTRAINT; break;
case T_hole_clearance: constraint.m_Type = HOLE_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_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_hole_to_hole: constraint.m_Type = HOLE_TO_HOLE_CONSTRAINT; break;
case T_courtyard_clearance: constraint.m_Type = COURTYARD_CLEARANCE_CONSTRAINT; break; case T_courtyard_clearance: constraint.m_Type = COURTYARD_CLEARANCE_CONSTRAINT; break;
case T_silk_clearance: constraint.m_Type = SILK_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; case T_diff_pair_uncoupled: constraint.m_Type = DIFF_PAIR_MAX_UNCOUPLED_CONSTRAINT; break;
default: default:
msg.Printf( _( "Unrecognized item '%s'.| Expected %s." ), FromUTF8(), 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', " "'courtyard_clearance', 'silk_clearance', 'track_width', 'annular_width', "
"'disallow', 'length', 'skew', 'diff_pair_gap' or 'diff_pair_uncoupled'." ); "'disallow', 'length', 'skew', 'diff_pair_gap' or 'diff_pair_uncoupled'." );
reportError( msg ); reportError( msg );