CADSTAR PCB: KiCad's minimum permitted Through Drill is 0.0508mm(2mils)

This commit is contained in:
Roberto Fernandez Bautista 2021-04-10 22:15:13 +01:00
parent a3196a11a7
commit edb2136a0d
1 changed files with 2 additions and 1 deletions

View File

@ -622,7 +622,8 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules()
ds.m_TrackMinWidth = getKiCadLength( Assignments.Technology.MinRouteWidth );
ds.m_ViasMinSize = ds.m_TrackMinWidth; // Not specified, assumed same as track width
ds.m_ViasMinAnnulus = ds.m_TrackMinWidth / 2; // Not specified, assumed half track width
ds.m_MinThroughDrill = 0; // CADSTAR does not specify a minimum hole size
ds.m_MinThroughDrill = PCB_IU_PER_MM * 0.0508; // CADSTAR does not specify a minimum hole size
// so set to minimum permitted in KiCad (2 mils)
ds.m_HoleClearance = ds.m_CopperEdgeClearance; // Not specified, assumed same as edge
auto applyNetClassRule = [&]( wxString aID, NETCLASS* aNetClassPtr,