25#ifndef __PCBNEW_SCRIPTING_HELPERS_H
26#define __PCBNEW_SCRIPTING_HELPERS_H
81bool SaveBoard( wxString& aFileName,
BOARD* aBoard,
bool aSkipSettings =
false );
125bool ExportVRML(
const wxString& aFullFileName,
double aMMtoWRMLunit,
bool aExport3DFiles,
126 bool aUseRelativePaths,
const wxString& a3D_Subdir,
double aXRef,
double aYRef );
150 wxString* aLibPath =
nullptr );
200 bool aReportAllTrackErrors );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
PCB_FILE_T
The set of file types that the IO_MGR knows about, and for which there has been a plugin written,...
The main frame for Pcbnew.
bool ImportSpecctraSES(wxString &aFullFilename)
Import a specctra *.ses file and use it to relocate MODULEs and to replace all vias and tracks in an ...
SETTINGS_MANAGER * GetSettingsManager()
bool WriteDRCReport(BOARD *aBoard, const wxString &aFileName, EDA_UNITS aUnits, bool aReportAllTrackErrors)
Run the DRC check on the given board and writes the results to a report file.
BOARD * CreateEmptyBoard()
Construct a default BOARD with a temporary (no filename) project.
void ScriptingOnDestructPcbEditFrame(PCB_EDIT_FRAME *aPCBEdaFrame)
bool SaveBoard(wxString &aFileName, BOARD *aBoard, bool aSkipSettings=false)
Saves a copy of the given board and its associated project to the given path.
wxArrayString GetFootprintLibraries()
Get the nicknames of all of the footprint libraries configured in pcbnew in both the project and glob...
int GetUserUnits()
Return the currently selected user unit value for the interface.
wxArrayString GetFootprints(const wxString &aNickName)
Get the names of all of the footprints available in a footprint library.
bool IsActionRunning()
Are we currently in an action plugin?
BOARD * LoadBoard(wxString &aFileName, IO_MGR::PCB_FILE_T aFormat)
void UpdateUserInterface()
Update the layer manager and other widgets from the board setup (layer and items visibility,...
void ScriptingSetPcbEditFrame(PCB_EDIT_FRAME *aPCBEdaFrame)
bool ExportSpecctraDSN(wxString &aFullFilename)
Will export the current BOARD to a specctra dsn file.
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
std::deque< BOARD_ITEM * > GetCurrentSelection()
Get the list of selected objects.
bool ExportVRML(const wxString &aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, const wxString &a3D_Subdir, double aXRef, double aYRef)
Export the current BOARD to a VRML (wrl) file.
BOARD * NewBoard(wxString &aFileName)
Creates a new board and project with the given filename (will overwrite existing files!...
bool ExportFootprintsToLibrary(bool aStoreInNewLib, const wxString &aLibName=wxEmptyString, wxString *aLibPath=nullptr)
Save footprints in a library: