67 for(
unsigned i = 0; i < sheetList.size(); i++ )
83 fname.Replace(
"/",
"_" );
84 fname.Replace(
"\\",
"_" );
88 if(
PlotOneSheetDXF( plotFileName.GetFullPath(), screen, aRenderSettings,
89 plot_offset, 1.0, aPlotDrawingSheet ) )
91 msg.Printf(
_(
"Plot: \"%s\" OK.\n" ), plotFileName.GetFullPath() );
96 msg.Printf(
_(
"Unable to create file \"%s\".\n" ), plotFileName.GetFullPath() );
102 msg.Printf( wxT(
"DXF Plotter exception: %s"), e.
What() );
139 if( ! plotter->
OpenFile( aFileName ) )
159 aScreen->
Plot( plotter );
void SetCurrentSheet(const SCH_SHEET_PATH &aSheet)
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
const wxString & GetFileName() const
virtual void SetCreator(const wxString &aCreator)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Plotting engines (PostScript, Gerber, HPGL and DXF)
virtual void SetViewport(const wxPoint &aOffset, double aIusPerDecimil, double aScale, bool aMirror) override
Set the scale/position for the DXF plot The DXF engine doesn't support line widths and mirroring.
virtual bool OpenFile(const wxString &aFullFilename)
Open or create the plot file aFullFilename.
virtual void SetColorMode(bool aColorMode)
Plot in B/W or color.
int GetVirtualPageNumber() const
void SetRenderSettings(RENDER_SETTINGS *aSettings)
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
COLOR_SETTINGS * getColorSettings()
Schematic editor (Eeschema) main window.
A pure virtual class used to derive REPORTER objects from.
void UpdateAllScreenReferences()
Update all the symbol references for this sheet path.
const PAGE_INFO & GetPageSettings() const
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)=0
Report a string with a given severity.
void CreateDXFFile(bool aPlotAll, bool aPlotDrawingSheet, RENDER_SETTINGS *aRenderSettings)
const wxString & GetPageNumber() const
static wxString GetDefaultFileExtension()
wxString GetScreenDesc() const override
Return a human-readable description of the current screen.
wxFileName createPlotFileName(const wxString &aPlotFileName, const wxString &aExtension, REPORTER *aReporter=NULL)
Create a file name with an absolute path name.
virtual bool StartPlot() override
Opens the DXF plot with a skeleton header.
virtual const wxString What() const
A composite of Problem() and Where()
SCH_EDIT_FRAME * m_parent
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
Describe the page size and margins of a paper page on which to eventually print or plot.
void BuildSheetList(SCH_SHEET *aSheet, bool aCheckIntegrity)
Build the list of sheets and their sheet path from aSheet.
SCHEMATIC & Schematic() const
virtual bool EndPlot() override
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void Plot(PLOTTER *aPlotter)
Plot all the schematic objects to aPlotter.
bool PlotOneSheetDXF(const wxString &aFileName, SCH_SCREEN *aScreen, RENDER_SETTINGS *aRenderSettings, wxPoint aPlotOffset, double aScale, bool aPlotFrameRef)
RENDER_SETTINGS * RenderSettings()
SCH_SCREEN * LastScreen()
void SetSheetNumberAndCount()
Set the m_ScreenNumber and m_NumberOfScreens members for screens.
const TITLE_BLOCK & GetTitleBlock() const override
void PlotDrawingSheet(PLOTTER *plotter, const PROJECT *aProject, const TITLE_BLOCK &aTitleBlock, const PAGE_INFO &aPageInfo, const wxString &aSheetNumber, int aSheetCount, const wxString &aSheetDesc, const wxString &aFilename, COLOR4D aColor, bool aIsFirstPage)
void SortByPageNumbers(bool aUpdateVirtualPageNums=true)
Sorts the list of sheets by page number.
wxString GetUniqueFilenameForCurrentSheet()
SCH_SHEET_PATH & GetCurrentSheet() const
WX_HTML_REPORT_PANEL * m_MessagesBox
void SetDefaultPenWidth(int aWidth)
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
virtual void LoadColors(const COLOR_SETTINGS *aSettings)
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
virtual void SetPageSettings(const PAGE_INFO &aPageSettings)
bool GetColorMode() const