KiCad PCB EDA Suite
Loading...
Searching...
No Matches
export_idf.h File Reference
#include <wx/string.h>

Go to the source code of this file.

Functions

bool ExportBoardToIDF3 (BOARD *aPcb, const wxString &aFullFileName, bool aUseThou, double aXRef, double aYRef, bool aIncludeUnspecified, bool aIncludeDNP, FILENAME_RESOLVER *aResolver, wxString *aErrorMsg=nullptr)
 Generate IDFv3 compliant board (*.emn) and library (*.emp) files for aPcb.
 

Function Documentation

◆ ExportBoardToIDF3()

bool ExportBoardToIDF3 ( BOARD * aPcb,
const wxString & aFullFileName,
bool aUseThou,
double aXRef,
double aYRef,
bool aIncludeUnspecified,
bool aIncludeDNP,
FILENAME_RESOLVER * aResolver,
wxString * aErrorMsg )

Generate IDFv3 compliant board (*.emn) and library (*.emp) files for aPcb.

Headless-friendly core of the IDF exporter. aResolver locates 3D model files and must be non-null; the GUI passes the project resolver while non-GUI callers may pass a bare resolver. On failure the routine returns false and, when aErrorMsg is non-null, stores a human-readable message rather than showing a dialog.

Generate IDFv3 compliant board (*.emn) and library (*.emp) files for aPcb.

Split out from PCB_EDIT_FRAME::Export_IDF3 so it can be driven headlessly (unit tests, CLI) with an explicitly supplied 3D model resolver and no GUI error reporting.

Definition at line 681 of file export_idf.cpp.

References BOARD::Footprints(), From_UTF8(), BOARD_DESIGN_SETTINGS::GetBoardThickness(), GetBuildVersion(), BOARD::GetDesignSettings(), BOARD::GetFileName(), idf_export_footprint(), idf_export_outline(), pcbIUScale, resolver, scale, TO_UTF8, and IO_ERROR::What().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_EDIT_FRAME::Export_IDF3().