Added a ImportSpecctraSession overload that doesn't require a PCB_EDIT_FRAME
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -137,6 +137,17 @@ bool ExportVRML( const wxString& aFullFileName, double aMMtoWRMLunit, bool aExpo
|
||||
*/
|
||||
bool ImportSpecctraSES( wxString& aFullFilename );
|
||||
|
||||
/**
|
||||
* Import a specctra *.ses file and use it to relocate MODULEs and to replace all vias and
|
||||
* Unlike first overload doesn't need a valid PCB_EDIT_FRAME set and can be used
|
||||
* in a standalone python script.
|
||||
*
|
||||
* See http://www.autotraxeda.com/docs/SPECCTRA/SPECCTRA.pdf for the specification.
|
||||
*
|
||||
* @return true if OK
|
||||
*/
|
||||
bool ImportSpecctraSES( BOARD* aBoard, wxString& aFullFilename );
|
||||
|
||||
/**
|
||||
* Save footprints in a library:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user