|
KiCad PCB EDA Suite
|
#include <set>#include <wx/string.h>#include <font/fontconfig.h>#include <project.h>#include <pcb_io_altium_designer.h>#include <altium_pcb.h>#include <altium_pcb_compound_file.h>#include <io/io_utils.h>#include <io/altium/altium_binary_parser.h>#include <io/altium/altium_project_variants.h>#include <pcb_io/pcb_io.h>#include <reporter.h>#include <board.h>#include <footprint.h>#include <compoundfilereader.h>#include <utf.h>Go to the source code of this file.
Functions | |
| void | ApplyAltiumProjectVariantsToBoard (BOARD *aBoard, const std::vector< ALTIUM_PROJECT_VARIANT > &aVariants) |
| Pcbnew PLUGIN for Altium *.PcbDoc format. | |
| void | LoadAltiumBoard (const wxString &aFileName, BOARD *aBoard, const std::map< ALTIUM_PCB_DIR, std::string > &aMapping, const std::map< std::string, UTF8 > *aProperties, PROJECT *aProject, PROGRESS_REPORTER *aProgressReporter, LAYER_MAPPING_HANDLER &aLayerMappingHandler, REPORTER *aReporter) |
| void ApplyAltiumProjectVariantsToBoard | ( | BOARD * | aBoard, |
| const std::vector< ALTIUM_PROJECT_VARIANT > & | aVariants ) |
Pcbnew PLUGIN for Altium *.PcbDoc format.
Apply parsed Altium project variants to a board by setting FOOTPRINT_VARIANT data on each footprint whose reference matches a variant entry.
Definition at line 47 of file pcb_io_altium_designer.cpp.
References BOARD::AddVariant(), FOOTPRINT::AddVariant(), ALTIUM_VARIANT_ENTRY::alternateFields, AltiumUniqueIdToKiid(), ALTIUM_VARIANT_ENTRY::designator, BOARD::Footprints(), ALTIUM_VARIANT_ENTRY::kind, path, FOOTPRINT_VARIANT::SetDNP(), FOOTPRINT_VARIANT::SetExcludedFromBOM(), FOOTPRINT_VARIANT::SetExcludedFromPosFiles(), FOOTPRINT_VARIANT::SetFieldValue(), BOARD::SetVariantDescription(), and ALTIUM_VARIANT_ENTRY::uniqueId.
Referenced by LoadAltiumBoard().
| void LoadAltiumBoard | ( | const wxString & | aFileName, |
| BOARD * | aBoard, | ||
| const std::map< ALTIUM_PCB_DIR, std::string > & | aMapping, | ||
| const std::map< std::string, UTF8 > * | aProperties, | ||
| PROJECT * | aProject, | ||
| PROGRESS_REPORTER * | aProgressReporter, | ||
| LAYER_MAPPING_HANDLER & | aLayerMappingHandler, | ||
| REPORTER * | aReporter ) |
Definition at line 124 of file pcb_io_altium_designer.cpp.
References ApplyAltiumProjectParametersToProject(), ApplyAltiumProjectVariantsToBoard(), ALTIUM_PCB::GetSpecialStrings(), PROJECT::GetTextVars(), name, ALTIUM_PCB::Parse(), ParseAltiumProjectParameters(), ParseAltiumProjectVariants(), and THROW_IO_ERROR.
Referenced by PCB_IO_ALTIUM_CIRCUIT_MAKER::loadBoard(), PCB_IO_ALTIUM_CIRCUIT_STUDIO::loadBoard(), PCB_IO_ALTIUM_DESIGNER::loadBoard(), and PCB_IO_SOLIDWORKS::loadBoard().