From 672ce650a9d19f90d73dfa974b6b937e4bb2a9a7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Nov 2022 13:33:00 +0000 Subject: [PATCH] Basic ERC for simulation models. --- eeschema/erc.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ) {