CADSTAR PCB: Legacy netclass and design settings loading is required

This commit is contained in:
Roberto Fernandez Bautista 2021-10-08 20:45:49 +01:00
parent ae0229b7c9
commit 2dfbd42be6
2 changed files with 4 additions and 2 deletions

View File

@ -657,8 +657,6 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadDesignRules()
applyNetClassRule( "T_T", ds.GetDefault(), &::NETCLASS::SetClearance );
m_board->m_LegacyNetclassesLoaded = true;
wxLogWarning( _( "KiCad design rules are different from CADSTAR ones. Only the compatible "
"design rules were imported. It is recommended that you review the design "
"rules that have been applied." ) );

View File

@ -138,6 +138,10 @@ BOARD* CADSTAR_PCB_ARCHIVE_PLUGIN::Load( const wxString& aFileName, BOARD* aAppe
}
}
// Need to set legacy loading so that netclassess and design rules are loaded correctly
m_board->m_LegacyNetclassesLoaded = true;
m_board->m_LegacyDesignSettingsLoaded = true;
m_loaded_footprints = tempPCB.GetLoadedLibraryFootpints();
return m_board;