Loading common/netlist.keywords +2 −0 Original line number Diff line number Diff line Loading @@ -36,3 +36,5 @@ tstamps uri value version aliases alias pcbnew/kicad_netlist_reader.cpp +25 −0 Original line number Diff line number Diff line Loading @@ -386,6 +386,9 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) { /* Parses a section like * (libpart (lib device) (part C) * (aliases * (alias Cxx) * (alias Cyy)) * (description "Condensateur non polarise") * (footprints * (fp SM*) Loading @@ -405,6 +408,7 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) wxString libName; wxString libPartName; wxArrayString footprintFilters; wxArrayString aliases; // The last token read was libpart, so read the next token while( (token = NextTok()) != T_RIGHT ) Loading Loading @@ -443,6 +447,20 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) break; case T_aliases: while( (token = NextTok()) != T_RIGHT ) { if( token == T_LEFT ) token = NextTok(); if( token != T_alias ) Expecting( T_alias ); NeedSYMBOLorNUMBER(); aliases.Add( FROM_UTF8( CurText() ) ); NeedRIGHT(); } break; default: // Skip not used data (i.e all other tokens) skipCurrent(); Loading @@ -457,5 +475,12 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) if( component->IsLibSource( libName, libPartName ) ) component->SetFootprintFilters( footprintFilters ); for( unsigned jj = 0; jj < aliases.GetCount(); jj++ ) { if( component->IsLibSource( libName, aliases[jj] ) ) component->SetFootprintFilters( footprintFilters ); } } } Loading
common/netlist.keywords +2 −0 Original line number Diff line number Diff line Loading @@ -36,3 +36,5 @@ tstamps uri value version aliases alias
pcbnew/kicad_netlist_reader.cpp +25 −0 Original line number Diff line number Diff line Loading @@ -386,6 +386,9 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) { /* Parses a section like * (libpart (lib device) (part C) * (aliases * (alias Cxx) * (alias Cyy)) * (description "Condensateur non polarise") * (footprints * (fp SM*) Loading @@ -405,6 +408,7 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) wxString libName; wxString libPartName; wxArrayString footprintFilters; wxArrayString aliases; // The last token read was libpart, so read the next token while( (token = NextTok()) != T_RIGHT ) Loading Loading @@ -443,6 +447,20 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) break; case T_aliases: while( (token = NextTok()) != T_RIGHT ) { if( token == T_LEFT ) token = NextTok(); if( token != T_alias ) Expecting( T_alias ); NeedSYMBOLorNUMBER(); aliases.Add( FROM_UTF8( CurText() ) ); NeedRIGHT(); } break; default: // Skip not used data (i.e all other tokens) skipCurrent(); Loading @@ -457,5 +475,12 @@ void KICAD_NETLIST_PARSER::parseLibPartList() throw( IO_ERROR, PARSE_ERROR ) if( component->IsLibSource( libName, libPartName ) ) component->SetFootprintFilters( footprintFilters ); for( unsigned jj = 0; jj < aliases.GetCount(); jj++ ) { if( component->IsLibSource( libName, aliases[jj] ) ) component->SetFootprintFilters( footprintFilters ); } } }