From 3d79bf82f47d27098e6563fa810b9b110553d7bd Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Fri, 9 Aug 2013 14:05:04 -0500 Subject: [PATCH] REMOVE: vias from specctra DSN export which are not in a netclass. Use only netclass based via sizes in freerouter. Some of the vias in the class-less list were setting the drill hole size to zero and this made no sense to freerouter. --- pcbnew/specctra_export.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pcbnew/specctra_export.cpp b/pcbnew/specctra_export.cpp index f25b97ac18..65df8c00f8 100644 --- a/pcbnew/specctra_export.cpp +++ b/pcbnew/specctra_export.cpp @@ -201,12 +201,8 @@ const KICAD_T SPECCTRA_DB::scanPADs[] = { PCB_PAD_T, EOT }; */ static inline double scale( int kicadDist ) { - // nanometers to um return kicadDist / ( IU_PER_MM / 1000.0 ); - - // nanometers to mils - // return kicadDist/IU_PER_MILS; } @@ -1139,7 +1135,7 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER } else { - wxPoint startPt = wxPoint( graphic->GetEnd() ); + wxPoint startPt( graphic->GetEnd() ); prevPt = graphic->GetEnd(); poly_ko->AppendPoint( mapPt( prevPt ) ); @@ -1351,7 +1347,6 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR ) //----- & -------------------- { - // tell freerouter to use "tenths of micrometers", // which is 100 nm resolution. Possibly more resolution is possible // in freerouter, but it would need testing. @@ -1728,7 +1723,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR ) } - //-----< output vias used in netclasses and as stock >--------------------- + //-----< output vias used in netclasses >----------------------------------- { NETCLASSES& nclasses = aBoard->m_NetClasses; @@ -1746,6 +1741,10 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR ) wxASSERT( pcb->library->vias.size() == 0 ); pcb->library->AppendVia( via ); +#if 0 + // Stock vias have drill diameter of zero, this is not sensible to freerouter + // User should use netclass based vias when going to freerouter. + // output the stock vias, but preserve uniqueness in the via container by // using LookupVia(). for( unsigned i = 0; i < aBoard->m_ViasDimensionsList.size(); ++i ) @@ -1762,6 +1761,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR ) if( registered != via ) delete via; } +#endif // set the "spare via" index at the start of the // pcb->library->spareViaIndex = pcb->library->vias.size();