Added a ImportSpecctraSession overload that doesn't require a PCB_EDIT_FRAME

This commit is contained in:
snhobbs
2023-11-20 03:06:27 +00:00
committed by Seth Hillbrand
parent d620cb8a6e
commit 5cf244dd90
5 changed files with 63 additions and 26 deletions
@@ -359,7 +359,7 @@ bool ExportSpecctraDSN( BOARD* aBoard, wxString& aFullFilename )
{
try
{
ExportBoardToSpecctraFile( aBoard, aFullFilename );
DSN::ExportBoardToSpecctraFile( aBoard, aFullFilename );
}
catch( ... )
{
@@ -399,6 +399,20 @@ bool ImportSpecctraSES( wxString& aFullFilename )
}
}
bool ImportSpecctraSES( BOARD* aBoard, wxString& aFullFilename )
{
try
{
DSN::ImportSpecctraSession( aBoard, aFullFilename );
}
catch( ... )
{
return false;
}
return true;
}
bool ExportFootprintsToLibrary( bool aStoreInNewLib, const wxString& aLibName, wxString* aLibPath )
{