diff --git a/eeschema/erc.cpp b/eeschema/erc.cpp index f88e52d6e7..225684c8b7 100644 --- a/eeschema/erc.cpp +++ b/eeschema/erc.cpp @@ -24,7 +24,7 @@ */ #include "connection_graph.h" -#include "sim/sim_model.h" +#include #include // for ExpandEnvVarSubstitutions #include #include @@ -869,6 +869,7 @@ int ERC_TESTER::TestOffGridEndpoints( int aGridSize ) int ERC_TESTER::TestSimModelIssues() { + SIM_LIB_MGR libMgr( m_schematic->Prj() ); SCH_SHEET_LIST sheets = m_schematic->GetSheets(); int err_count = 0; @@ -882,9 +883,7 @@ int ERC_TESTER::TestSimModelIssues() try { - /* JEY TODO - std::unique_ptr model = SIM_MODEL::Create( &sheet, symbol, true ); - */ + libMgr.CreateModel( &sheet, *symbol, true ); } catch( IO_ERROR& e ) {