2011-11-28 04:32:29 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2012-04-17 14:54:48 +00:00
|
|
|
* Copyright (C) 2011-2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
2023-08-13 02:26:06 +00:00
|
|
|
* Copyright (C) 2016-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2011-11-28 04:32:29 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2012-11-19 16:19:38 +00:00
|
|
|
#include <wx/filename.h>
|
2013-09-23 15:19:39 +00:00
|
|
|
#include <wx/uri.h>
|
2011-11-28 04:32:29 +00:00
|
|
|
|
2020-04-03 23:22:24 +00:00
|
|
|
#include <config.h>
|
2023-08-12 14:37:02 +00:00
|
|
|
#include <kiway_player.h>
|
|
|
|
#include <wildcards_and_files_ext.h>
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
#include <pcb_io/pcb_io_mgr.h>
|
|
|
|
|
2023-12-24 01:21:58 +00:00
|
|
|
#include <pcb_io/eagle/pcb_io_eagle.h>
|
|
|
|
#include <pcb_io/geda/pcb_io_geda.h>
|
|
|
|
#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>
|
|
|
|
#include <pcb_io/kicad_legacy/pcb_io_kicad_legacy.h>
|
|
|
|
#include <pcb_io/pcad/pcb_io_pcad.h>
|
|
|
|
#include <pcb_io/altium/pcb_io_altium_circuit_maker.h>
|
|
|
|
#include <pcb_io/altium/pcb_io_altium_circuit_studio.h>
|
|
|
|
#include <pcb_io/altium/pcb_io_altium_designer.h>
|
|
|
|
#include <pcb_io/altium/pcb_io_solidworks.h>
|
|
|
|
#include <pcb_io/cadstar/pcb_io_cadstar_archive.h>
|
|
|
|
#include <pcb_io/fabmaster/pcb_io_fabmaster.h>
|
|
|
|
#include <pcb_io/easyeda/pcb_io_easyeda_plugin.h>
|
|
|
|
#include <pcb_io/easyedapro/pcb_io_easyedapro.h>
|
|
|
|
#include <pcb_io/ipc2581/pcb_io_ipc2581.h>
|
2011-11-28 04:32:29 +00:00
|
|
|
|
2017-12-15 11:37:46 +00:00
|
|
|
#define FMT_UNIMPLEMENTED _( "Plugin \"%s\" does not implement the \"%s\" function." )
|
|
|
|
#define FMT_NOTFOUND _( "Plugin type \"%s\" is not found." )
|
2012-04-16 03:18:41 +00:00
|
|
|
|
|
|
|
|
2011-11-30 07:43:46 +00:00
|
|
|
// Some day plugins might be in separate DLL/DSOs, simply because of numbers of them
|
|
|
|
// and code size. Until then, use the simplest method:
|
2011-11-28 04:32:29 +00:00
|
|
|
|
|
|
|
// This implementation is one of two which could be done.
|
2011-11-30 07:43:46 +00:00
|
|
|
// The other one would cater to DLL/DSO's. But since it would be nearly
|
2011-11-28 04:32:29 +00:00
|
|
|
// impossible to link a KICAD type DLL/DSO right now without pulling in all
|
2011-11-30 07:43:46 +00:00
|
|
|
// ::Draw() functions, I forgo that option temporarily.
|
2011-11-28 04:32:29 +00:00
|
|
|
|
2011-11-30 07:43:46 +00:00
|
|
|
// Some day it may be possible to have some built in AND some DLL/DSO
|
|
|
|
// plugins coexisting.
|
2011-11-28 04:32:29 +00:00
|
|
|
|
2011-11-30 07:43:46 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
PCB_IO* PCB_IO_MGR::PluginFind( PCB_FILE_T aFileType )
|
2011-11-28 04:32:29 +00:00
|
|
|
{
|
2011-11-30 07:43:46 +00:00
|
|
|
// This implementation is subject to change, any magic is allowed here.
|
|
|
|
// The public IO_MGR API is the only pertinent public information.
|
|
|
|
|
2017-10-30 23:21:16 +00:00
|
|
|
return PLUGIN_REGISTRY::Instance()->Create( aFileType );
|
2011-11-28 04:32:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
const wxString PCB_IO_MGR::ShowType( PCB_FILE_T aType )
|
2011-11-28 04:32:29 +00:00
|
|
|
{
|
2017-10-30 23:21:16 +00:00
|
|
|
const auto& plugins = PLUGIN_REGISTRY::Instance()->AllPlugins();
|
2012-04-07 18:05:56 +00:00
|
|
|
|
2017-10-30 23:21:16 +00:00
|
|
|
for( const auto& plugin : plugins )
|
|
|
|
{
|
|
|
|
if ( plugin.m_type == aType )
|
|
|
|
{
|
|
|
|
return plugin.m_name;
|
|
|
|
}
|
2011-11-28 04:32:29 +00:00
|
|
|
}
|
2017-10-30 23:21:16 +00:00
|
|
|
|
2018-03-03 20:07:59 +00:00
|
|
|
return wxString::Format( _( "UNKNOWN (%d)" ), aType );
|
2011-11-28 04:32:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
PCB_IO_MGR::PCB_FILE_T PCB_IO_MGR::EnumFromStr( const wxString& aType )
|
2012-10-17 15:12:17 +00:00
|
|
|
{
|
2017-10-30 23:21:16 +00:00
|
|
|
const auto& plugins = PLUGIN_REGISTRY::Instance()->AllPlugins();
|
2012-10-17 15:12:17 +00:00
|
|
|
|
2017-10-30 23:21:16 +00:00
|
|
|
for( const auto& plugin : plugins )
|
|
|
|
{
|
|
|
|
if ( plugin.m_name == aType )
|
|
|
|
{
|
|
|
|
return plugin.m_type;
|
|
|
|
}
|
|
|
|
}
|
2012-10-17 15:12:17 +00:00
|
|
|
|
|
|
|
return PCB_FILE_T( -1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-08-12 14:37:02 +00:00
|
|
|
// The KIWAY_PLAYER::OpenProjectFiles() API knows nothing about plugins, so
|
|
|
|
// determine how to load the BOARD here
|
2023-12-19 17:39:26 +00:00
|
|
|
PCB_IO_MGR::PCB_FILE_T PCB_IO_MGR::FindPluginTypeFromBoardPath( const wxString& aFileName, int aCtl )
|
2023-08-12 14:37:02 +00:00
|
|
|
{
|
2023-12-19 17:39:26 +00:00
|
|
|
const auto& plugins = PCB_IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins();
|
2023-08-12 14:37:02 +00:00
|
|
|
|
|
|
|
for( const auto& plugin : plugins )
|
|
|
|
{
|
2023-12-19 17:39:26 +00:00
|
|
|
bool isKiCad = plugin.m_type == PCB_IO_MGR::KICAD_SEXP || plugin.m_type == PCB_IO_MGR::LEGACY;
|
2023-08-12 14:37:02 +00:00
|
|
|
|
|
|
|
if( ( aCtl & KICTL_KICAD_ONLY ) && !isKiCad )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if( ( aCtl & KICTL_NONKICAD_ONLY ) && isKiCad )
|
|
|
|
continue;
|
|
|
|
|
2023-12-27 20:39:29 +00:00
|
|
|
IO_RELEASER<PCB_IO> pi( plugin.m_createFunc() );
|
2023-08-12 14:37:02 +00:00
|
|
|
|
|
|
|
if( pi->CanReadBoard( aFileName ) )
|
|
|
|
return plugin.m_type;
|
|
|
|
}
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
return PCB_IO_MGR::FILE_TYPE_NONE;
|
2023-08-12 14:37:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
PCB_IO_MGR::PCB_FILE_T PCB_IO_MGR::GuessPluginTypeFromLibPath( const wxString& aLibPath, int aCtl )
|
2012-11-19 16:19:38 +00:00
|
|
|
{
|
2023-12-19 17:39:26 +00:00
|
|
|
const auto& plugins = PCB_IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins();
|
2012-11-19 16:19:38 +00:00
|
|
|
|
2023-08-26 19:28:53 +00:00
|
|
|
for( const auto& plugin : plugins )
|
2023-08-28 20:44:10 +00:00
|
|
|
{
|
2023-12-19 17:39:26 +00:00
|
|
|
bool isKiCad = plugin.m_type == PCB_IO_MGR::KICAD_SEXP || plugin.m_type == PCB_IO_MGR::LEGACY;
|
2013-09-21 07:30:23 +00:00
|
|
|
|
2023-08-26 19:28:53 +00:00
|
|
|
if( ( aCtl & KICTL_KICAD_ONLY ) && !isKiCad )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if( ( aCtl & KICTL_NONKICAD_ONLY ) && isKiCad )
|
|
|
|
continue;
|
|
|
|
|
2023-12-27 20:39:29 +00:00
|
|
|
IO_RELEASER<PCB_IO> pi( plugin.m_createFunc() );
|
2023-08-26 19:28:53 +00:00
|
|
|
|
2023-12-27 00:25:41 +00:00
|
|
|
if( pi->CanReadLibrary( aLibPath ) )
|
2023-08-26 19:28:53 +00:00
|
|
|
return plugin.m_type;
|
2012-11-19 16:19:38 +00:00
|
|
|
}
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
return PCB_IO_MGR::FILE_TYPE_NONE;
|
2012-11-19 16:19:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
BOARD* PCB_IO_MGR::Load( PCB_FILE_T aFileType, const wxString& aFileName, BOARD* aAppendToMe,
|
2022-11-06 16:51:52 +00:00
|
|
|
const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
|
2021-06-23 22:53:08 +00:00
|
|
|
PROGRESS_REPORTER* aProgressReporter )
|
2011-11-28 04:32:29 +00:00
|
|
|
{
|
2023-12-27 20:39:29 +00:00
|
|
|
IO_RELEASER<PCB_IO> pi( PluginFind( aFileType ) );
|
2011-11-28 04:32:29 +00:00
|
|
|
|
2023-12-27 20:39:29 +00:00
|
|
|
if( pi ) // test pi->plugin
|
2011-11-28 04:32:29 +00:00
|
|
|
{
|
2023-12-27 17:06:23 +00:00
|
|
|
pi->SetProgressReporter( aProgressReporter );
|
|
|
|
return pi->LoadBoard( aFileName, aAppendToMe, aProperties, aProject );
|
2011-11-28 04:32:29 +00:00
|
|
|
}
|
|
|
|
|
2012-04-16 03:18:41 +00:00
|
|
|
THROW_IO_ERROR( wxString::Format( FMT_NOTFOUND, ShowType( aFileType ).GetData() ) );
|
2011-11-28 04:32:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
void PCB_IO_MGR::Save( PCB_FILE_T aFileType, const wxString& aFileName, BOARD* aBoard,
|
2022-11-06 16:51:52 +00:00
|
|
|
const STRING_UTF8_MAP* aProperties )
|
2011-12-02 16:57:44 +00:00
|
|
|
{
|
2023-12-27 20:39:29 +00:00
|
|
|
IO_RELEASER<PCB_IO> pi( PluginFind( aFileType ) );
|
2011-12-02 16:57:44 +00:00
|
|
|
|
2023-12-27 20:39:29 +00:00
|
|
|
if( pi )
|
2011-12-02 16:57:44 +00:00
|
|
|
{
|
2023-08-13 02:11:58 +00:00
|
|
|
pi->SaveBoard( aFileName, aBoard, aProperties ); // virtual
|
2011-12-02 16:57:44 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-04-16 03:18:41 +00:00
|
|
|
THROW_IO_ERROR( wxString::Format( FMT_NOTFOUND, ShowType( aFileType ).GetData() ) );
|
2011-12-02 16:57:44 +00:00
|
|
|
}
|
2017-11-04 20:00:42 +00:00
|
|
|
|
2024-02-13 21:19:24 +00:00
|
|
|
|
|
|
|
bool PCB_IO_MGR::ConvertLibrary( STRING_UTF8_MAP* aOldFileProps, const wxString& aOldFilePath,
|
|
|
|
const wxString& aNewFilePath )
|
|
|
|
{
|
|
|
|
PCB_IO_MGR::PCB_FILE_T oldFileType = PCB_IO_MGR::GuessPluginTypeFromLibPath( aOldFilePath );
|
|
|
|
|
|
|
|
if( oldFileType == PCB_IO_MGR::FILE_TYPE_NONE )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
IO_RELEASER<PCB_IO> oldFilePI( PCB_IO_MGR::PluginFind( oldFileType ) );
|
|
|
|
IO_RELEASER<PCB_IO> kicadPI( PCB_IO_MGR::PluginFind( PCB_IO_MGR::KICAD_SEXP ) );
|
|
|
|
wxArrayString fpNames;
|
|
|
|
wxFileName newFileName( aNewFilePath );
|
|
|
|
|
2024-03-02 17:21:13 +00:00
|
|
|
if( newFileName.HasExt() )
|
|
|
|
{
|
|
|
|
wxString extraDir = newFileName.GetFullName();
|
|
|
|
newFileName.ClearExt();
|
|
|
|
newFileName.SetName( "" );
|
|
|
|
newFileName.AppendDir( extraDir );
|
|
|
|
}
|
|
|
|
|
2024-02-13 21:19:24 +00:00
|
|
|
if( !newFileName.DirExists() && !wxFileName::Mkdir( aNewFilePath, wxS_DIR_DEFAULT ) )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
bool bestEfforts = false; // throw on first error
|
|
|
|
oldFilePI->FootprintEnumerate( fpNames, aOldFilePath, bestEfforts, aOldFileProps );
|
|
|
|
|
|
|
|
for ( const wxString& fpName : fpNames )
|
|
|
|
{
|
|
|
|
std::unique_ptr<const FOOTPRINT> fp( oldFilePI->GetEnumeratedFootprint( aOldFilePath, fpName, aOldFileProps ) );
|
|
|
|
kicadPI->FootprintSave( aNewFilePath, fp.get() );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
catch( ... )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-03 20:07:59 +00:00
|
|
|
// These text strings are "truth" for identifying the plugins. If you change the spellings,
|
|
|
|
// you will obsolete library tables, so don't do it. Additions are OK.
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-08-13 02:26:06 +00:00
|
|
|
// clang-format off
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerKicadPlugin(
|
|
|
|
PCB_IO_MGR::KICAD_SEXP,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "KiCad" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_KICAD_SEXPR; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerLegacyPlugin(
|
|
|
|
PCB_IO_MGR::LEGACY,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "Legacy" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_KICAD_LEGACY; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-08-13 02:26:06 +00:00
|
|
|
// Keep non-KiCad plugins in alphabetical order
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerAltiumCircuitMakerPlugin(
|
|
|
|
PCB_IO_MGR::ALTIUM_CIRCUIT_MAKER,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "Altium Circuit Maker" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_ALTIUM_CIRCUIT_MAKER; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerAltiumCircuitStudioPlugin(
|
|
|
|
PCB_IO_MGR::ALTIUM_CIRCUIT_STUDIO,
|
2020-04-03 23:22:24 +00:00
|
|
|
wxT( "Altium Circuit Studio" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_ALTIUM_CIRCUIT_STUDIO; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerAltiumDesignerPlugin(
|
|
|
|
PCB_IO_MGR::ALTIUM_DESIGNER,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "Altium Designer" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_ALTIUM_DESIGNER; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerCadstarArchivePlugin(
|
|
|
|
PCB_IO_MGR::CADSTAR_PCB_ARCHIVE,
|
2023-08-05 13:37:20 +00:00
|
|
|
wxT( "CADSTAR PCB Archive" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_CADSTAR_ARCHIVE; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerEaglePlugin(
|
|
|
|
PCB_IO_MGR::EAGLE,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "Eagle" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_EAGLE; } );
|
2023-08-13 02:26:06 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerEasyEDAPlugin(
|
|
|
|
PCB_IO_MGR::EASYEDA,
|
2023-09-06 11:58:39 +00:00
|
|
|
wxT( "EasyEDA / JLCEDA Std" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_EASYEDA; });
|
2023-09-06 11:58:39 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerEasyEDAProPlugin(
|
|
|
|
PCB_IO_MGR::EASYEDAPRO,
|
2023-09-06 11:58:39 +00:00
|
|
|
wxT( "EasyEDA / JLCEDA Pro" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_EASYEDAPRO; });
|
2023-09-06 11:58:39 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerFabmasterPlugin(
|
|
|
|
PCB_IO_MGR::FABMASTER,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "Fabmaster" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_FABMASTER; } );
|
2023-08-05 13:37:20 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerGPCBPlugin(
|
|
|
|
PCB_IO_MGR::GEDA_PCB,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "GEDA/Pcb" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_GEDA; } );
|
2023-08-13 02:26:06 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerPcadPlugin(
|
|
|
|
PCB_IO_MGR::PCAD,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "P-Cad" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_PCAD; } );
|
2023-08-13 02:26:06 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerSolidworksPCBPlugin(
|
|
|
|
PCB_IO_MGR::SOLIDWORKS_PCB,
|
2023-08-13 02:26:06 +00:00
|
|
|
wxT( "Solidworks PCB" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_SOLIDWORKS; } );
|
2023-06-12 18:12:39 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
static PCB_IO_MGR::REGISTER_PLUGIN registerIPC2581Plugin(
|
|
|
|
PCB_IO_MGR::IPC2581,
|
2023-06-12 18:12:39 +00:00
|
|
|
wxT( "IPC-2581" ),
|
2023-12-24 01:21:58 +00:00
|
|
|
[]() -> PCB_IO* { return new PCB_IO_IPC2581; } );
|
2024-03-02 17:21:13 +00:00
|
|
|
// clang-format on
|