25#ifndef __PCBNEW_SCRIPTING_HELPERS_H
26#define __PCBNEW_SCRIPTING_HELPERS_H
116bool SaveBoard( wxString& aFileName,
BOARD* aBoard,
bool aSkipSettings =
false );
160bool ExportVRML(
const wxString& aFullFileName,
double aMMtoWRMLunit,
bool aIncludeUnspecified,
161 bool aIncludeDNP,
bool aExport3DFiles,
162 bool aUseRelativePaths,
const wxString& a3D_Subdir,
double aXRef,
double aYRef );
197 wxString* aLibPath =
nullptr );
255 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.
The main frame for Pcbnew.
PCB_FILE_T
The set of file types that the PCB_IO_MGR knows about, and for which there has been a plugin written,...
PCB_LAYER_ID
A quick note on layer IDs:
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.
bool ExportVRML(const wxString &aFullFileName, double aMMtoWRMLunit, bool aIncludeUnspecified, bool aIncludeDNP, bool aExport3DFiles, bool aUseRelativePaths, const wxString &a3D_Subdir, double aXRef, double aYRef)
Export the current BOARD to a VRML (wrl) file.
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?
void UpdateUserInterface()
Update the layer manager and other widgets from the board setup (layer and items visibility,...
void ScriptingSetPcbEditFrame(PCB_EDIT_FRAME *aPCBEdaFrame)
BOARD * LoadBoard(wxString &aFileName, PCB_IO_MGR::PCB_FILE_T aFormat)
Loads a board from file using the specified file io handler.
bool ExportSpecctraDSN(wxString &aFullFilename)
Will export the current BOARD to a specctra dsn file.
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
Focus the view on the target item.
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.
wxString GetLanguage()
Get the language string from COMMON_SETTINGS.
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: