33#include <compoundfilereader.h>
37 PCB_IO( wxS(
"Solidworks PCB" ) )
59 const std::map<std::string, UTF8>* aProperties,
PROJECT* aProject )
72 const std::map<ALTIUM_PCB_DIR, std::string> mapping = {
73 { ALTIUM_PCB_DIR::FILE_HEADER,
"FileHeader" },
74 { ALTIUM_PCB_DIR::ARCS6,
"D2864697BB2D411B857EBD69D74447" },
75 { ALTIUM_PCB_DIR::BOARD6,
"21CE7E3D9BFF41679BACA1184CAF54" },
76 { ALTIUM_PCB_DIR::BOARDREGIONS,
"67075A4119214CE4AB174F9B1A9A41" },
77 { ALTIUM_PCB_DIR::CLASSES6,
"1122D4F14A924F9CA5C2060AF370E0" },
78 { ALTIUM_PCB_DIR::COMPONENTS6,
"208CAE8E44BD43D5B3CCA426D9331B" },
79 { ALTIUM_PCB_DIR::COMPONENTBODIES6,
"6DDF94E6CB364893BED31C189F9AF3" },
80 { ALTIUM_PCB_DIR::DIMENSIONS6,
"6148AE8C77B042798B46830E96BB24" },
81 { ALTIUM_PCB_DIR::FILLS6,
"5944DE0E258C41E2B0B382AC964048" },
82 { ALTIUM_PCB_DIR::MODELS,
"874F98A7E25A48EDAD394EB891E503" },
83 { ALTIUM_PCB_DIR::NETS6,
"0201837ACD434D55B34BBC68B75BAB" },
84 { ALTIUM_PCB_DIR::PADS6,
"E4D0C33E25824886ABC7FEEAE7B521" },
85 { ALTIUM_PCB_DIR::POLYGONS6,
"7ABD4252549749DD8DB16804819AC3" },
86 { ALTIUM_PCB_DIR::REGIONS6,
"6B3892541AB94CD999291D590B5C86" },
87 { ALTIUM_PCB_DIR::RULES6,
"7009830ADF65423FA6CCB73A77E710" },
88 { ALTIUM_PCB_DIR::SHAPEBASEDREGIONS6,
"91241C66300E4490965070BA56F6F7" },
89 { ALTIUM_PCB_DIR::TEXTS6,
"4AF3D139533041489C2A57BBF9890D" },
90 { ALTIUM_PCB_DIR::TRACKS6,
"5D0C6E18E16A4BBFAA256C24B79EAE" },
91 { ALTIUM_PCB_DIR::VIAS6,
"2AF5387F097242D3A1095B6FAC3397" },
92 { ALTIUM_PCB_DIR::WIDESTRINGS6,
"9B378679AF85466C8673A41EE46393" }
131 pcb.
Parse( altiumPcbFile, mapping );
133 catch( CFB::CFBException& exception )
void Parse(const ALTIUM_PCB_COMPOUND_FILE &aAltiumPcbFile, const std::map< ALTIUM_PCB_DIR, std::string > &aFileMapping)
Information pertinent to a Pcbnew printed circuit board.
void SetFileName(const wxString &aFileName)
REPORTER * m_reporter
Reporter to log errors/warnings to, may be nullptr.
PROGRESS_REPORTER * m_progressReporter
Progress reporter to track the progress of the operation, may be nullptr.
virtual void RegisterCallback(LAYER_MAPPING_HANDLER aLayerMappingHandler)
Register a different handler to be called when mapping of input layers to KiCad layers occurs.
LAYER_MAPPING_HANDLER m_layer_mapping_handler
Callback to get layer mapping.
static bool checkFileHeader(const wxString &aFileName)
static std::map< wxString, PCB_LAYER_ID > DefaultLayerMappingCallback(const std::vector< INPUT_LAYER_DESC > &aInputLayerDescriptionVector)
Return the automapped layers.
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties, PROJECT *aProject=nullptr) override
Load information from some input file format that this PCB_IO implementation knows about into either ...
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
A base class that BOARD loading and saving plugins should derive from.
BOARD * m_board
The board BOARD being worked on, no ownership here.
virtual bool CanReadBoard(const wxString &aFileName) const
Checks if this PCB_IO can read the specified board file.
const std::map< std::string, UTF8 > * m_props
Properties passed via Save() or Load(), no ownership, may be NULL.
Container for project specific data.
static REPORTER & GetInstance()
static void SetReporter(REPORTER *aReporter)
Set the reporter to use for reporting font substitution warnings.
#define THROW_IO_ERROR(msg)