diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 589c2430de..fa513b25e7 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -396,6 +396,16 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : setupUnits( config() ); + // Ensure the DRC engine is initialized so that constraints can be resolved even before a + // board is loaded or saved + try + { + m_toolManager->GetTool()->GetDRCEngine()->InitEngine( wxFileName() ); + } + catch( PARSE_ERROR& ) + { + } + // Ensure the Python interpreter is up to date with its environment variables PythonSyncEnvironmentVariables(); PythonSyncProjectName();