Don't put "exclude from board" symbols in CvPCB netlist.

Fixes https://gitlab.com/kicad/code/kicad/issues/9939
This commit is contained in:
Jeff Young 2021-12-10 23:00:21 +00:00
parent 65cbf2d2b7
commit 1b2a278de9
3 changed files with 5 additions and 5 deletions

View File

@ -865,14 +865,14 @@ void CVPCB_MAINFRAME::SendMessageToEESCHEMA( bool aClearHighligntOnly )
int CVPCB_MAINFRAME::ReadSchematicNetlist( const std::string& aNetlist )
{
STRING_LINE_READER* strrdr = new STRING_LINE_READER( aNetlist, "Eeschema via Kiway" );
KICAD_NETLIST_READER netrdr( strrdr, &m_netlist );
STRING_LINE_READER* stringReader = new STRING_LINE_READER( aNetlist, "Eeschema via Kiway" );
KICAD_NETLIST_READER netlistReader( stringReader, &m_netlist );
m_netlist.Clear();
try
{
netrdr.LoadNetlist();
netlistReader.LoadNetlist();
}
catch( const IO_ERROR& ioe )
{

View File

@ -44,7 +44,7 @@ class XNODE;
enum GNL_T
{
GNL_LIBRARIES = 1 << 0,
GNL_SYMBOLS = 1 << 1,
GNL_SYMBOLS = 1 << 1,
GNL_PARTS = 1 << 2,
GNL_HEADER = 1 << 3,
GNL_NETS = 1 << 4,

View File

@ -191,7 +191,7 @@ void SCH_EDIT_FRAME::sendNetlistToCvpcb()
STRING_FORMATTER formatter;
// @todo : trim GNL_ALL down to minimum for CVPCB
exporter.Format( &formatter, GNL_ALL );
exporter.Format( &formatter, GNL_ALL | GNL_OPT_KICAD );
packet = formatter.GetString(); // an abbreviated "kicad" (s-expr) netlist