KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_altium_designer.cpp File Reference
#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 ApplyAltiumProjectParametersToProject (PROJECT *aProject, const std::map< wxString, wxString > &aParameters)
 Register Altium project parameters as KiCad project text variables so that imported board text referencing special strings (e.g.
 
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)
 

Function Documentation

◆ ApplyAltiumProjectParametersToProject()

void ApplyAltiumProjectParametersToProject ( PROJECT * aProject,
const std::map< wxString, wxString > & aParameters )

Register Altium project parameters as KiCad project text variables so that imported board text referencing special strings (e.g.

".PCB_Revision") resolves to its value.

Existing project variables are not overwritten, and names that collide with KiCad's reserved or contextually resolved variables are skipped to preserve native resolution.

Definition at line 124 of file pcb_io_altium_designer.cpp.

References PROJECT::GetTextVars(), PROJECT::IncrementTextVarsTicker(), and name.

Referenced by LoadAltiumBoard().

◆ ApplyAltiumProjectVariantsToBoard()

void ApplyAltiumProjectVariantsToBoard ( BOARD * aBoard,
const std::vector< ALTIUM_PROJECT_VARIANT > & aVariants )

◆ 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 )