Clearer DRC rule token name for hole_size.
This commit is contained in:
parent
3b26db745f
commit
4c3954aea8
|
@ -8,6 +8,7 @@ disallow
|
|||
footprint
|
||||
graphic
|
||||
hole
|
||||
hole_size
|
||||
hole_to_hole
|
||||
inner
|
||||
layer
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -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'"))
|
||||
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue