drc_engine: Fix via type names
There was a mismatch between the via type names used in the DRC engine and the via type names defined in the class_track.cpp ENUM_MAP for VIATYPE. This fixes the discrepancy; which was breaking microvias altogether as the route tool also uses the DRC code to determine the correct diameter/drill (without this patch it was incorrectly using regular dimensions for microvias.)
This commit is contained in:
parent
cc81d97f78
commit
66bcfb3ffc
|
@ -160,7 +160,7 @@ void DRC_ENGINE::loadImplicitRules()
|
|||
|
||||
DRC_RULE* uViaRule = createImplicitRule( _( "board setup micro-via constraints" ) );
|
||||
|
||||
uViaRule->m_Condition = new DRC_RULE_CONDITION( "A.Via_Type == 'micro_via'" );
|
||||
uViaRule->m_Condition = new DRC_RULE_CONDITION( "A.Via_Type == 'Micro'" );
|
||||
|
||||
DRC_CONSTRAINT uViaDrillConstraint( DRC_CONSTRAINT_TYPE_HOLE_SIZE );
|
||||
uViaDrillConstraint.Value().SetMin( bds.m_MicroViasMinDrill );
|
||||
|
@ -181,7 +181,7 @@ void DRC_ENGINE::loadImplicitRules()
|
|||
{
|
||||
DRC_RULE* bbViaRule = createImplicitRule( _( "board setup constraints" ) );
|
||||
|
||||
bbViaRule->m_Condition = new DRC_RULE_CONDITION( "A.Via_Type == 'buried_via'" );
|
||||
bbViaRule->m_Condition = new DRC_RULE_CONDITION( "A.Via_Type == 'Blind/buried'" );
|
||||
|
||||
DRC_CONSTRAINT disallowConstraint( DRC_CONSTRAINT_TYPE_DISALLOW );
|
||||
disallowConstraint.m_DisallowFlags = DRC_DISALLOW_BB_VIAS;
|
||||
|
@ -262,7 +262,7 @@ void DRC_ENGINE::loadImplicitRules()
|
|||
rule->m_Name = wxString::Format( _( "netclass '%s'" ), ncName );
|
||||
rule->m_Implicit = true;
|
||||
|
||||
expr = wxString::Format( "A.NetClass == '%s' && A.Via_Type != 'micro_via'",
|
||||
expr = wxString::Format( "A.NetClass == '%s' && A.Via_Type != 'Micro'",
|
||||
ncName );
|
||||
rule->m_Condition = new DRC_RULE_CONDITION( expr );
|
||||
netclassItemSpecificRules.push_back( rule );
|
||||
|
@ -290,7 +290,7 @@ void DRC_ENGINE::loadImplicitRules()
|
|||
rule->m_Name = wxString::Format( _( "netclass '%s'" ), ncName );
|
||||
rule->m_Implicit = true;
|
||||
|
||||
expr = wxString::Format( "A.NetClass == '%s' && A.Via_Type == 'micro_via'",
|
||||
expr = wxString::Format( "A.NetClass == '%s' && A.Via_Type == 'Micro'",
|
||||
ncName );
|
||||
rule->m_Condition = new DRC_RULE_CONDITION( expr );
|
||||
netclassItemSpecificRules.push_back( rule );
|
||||
|
|
Loading…
Reference in New Issue