Library | File

Class pfcPlotInstructions

# include <pfcModel.h>

class pfcPlotInstructions
 : public virtual pfcExportInstructions
{
    xdeclare(pfcPlotInstructions)
    ...
};
This is a COMPACT class.



Description

Instructions object used to plot drawings.

This export-instructions class has been superseeded by pfcPrinterInstructions objects.
See Also:
pfcPlotInstructions::Create(xrstring), pfcModel::Export(xrstring, pfcExportInstructions_ptr)



Method Summary

static pfcPlotInstructions_ptrCreate (xrstring PlotterName)
Creates a new instructions object used to plot a part, drawing, or assembly.
optional xintGetFirstPage ()
voidSetFirstPage (optional xint value)
When PageRangeChoice is PlotPageRange.PLOT_RANGE_OF_PAGES, this specifies the first page to print. Otherwise, the value is null
xboolGetLabelPlot ()
voidSetLabelPlot (xbool value)
If set to true , generates the plot with a label. Default is false; no label is created.
optional xintGetLastPage ()
voidSetLastPage (optional xint value)
When PageRangeChoice is PlotPageRange.PLOT_RANGE_OF_PAGES, this specifies the last page to print. Otherwise, the value is null
xintGetOutputQuality ()
voidSetOutputQuality (xint value)
A value of 0, 1, 2, or 3. Default is 1. Defines the amount of checking for overlapping lines in a plot or 2-D export file, such as IGES, before making a file.

The values are interpreted as follows:
  • 0-Does not check for overlapping lines or collect lines of the same pen color.
  • 1-Does not check for overlapping lines, but collects lines of the same pen color for plotting.
  • 2-Partially checks edges with two vertices, and collects lines of the same pen color for plotting.
  • 3-Does a complete check of all edges against each other, regardless of the number of vertices, font, or color. Collects lines of the same pen color for plotting.
pfcPlotPageRangeGetPageRangeChoice ()
voidSetPageRangeChoice (pfcPlotPageRange value)
One of the pfcPlotPageRange enumeration objects. Default is PlotPageRange.PLOT_RANGE_ALL.
pfcPlotPaperSizeGetPaperSize ()
voidSetPaperSize (pfcPlotPaperSize value)
One of the pfcPlotPaperSize enumeration objects. Default is PlotPaperSize.ASIZEPLOT.
optional xrealGetPaperSizeX ()
voidSetPaperSizeX (optional xreal value)
When PaperSize is PlotPaperSize.VARIABLEPLOTSIZE, this specifies the size of the plotter paper in the X dimension. Otherwise, the value is null
optional xrealGetPaperSizeY ()
voidSetPaperSizeY (optional xreal value)
When PaperSize is PlotPaperSize.VARIABLEPLOTSIZE, this specifies the size of the plotter paper in the Y dimension. Otherwise, the value is null.
xboolGetPenSlew ()
voidSetPenSlew (xbool value)
Set to true if you want to adjust pen velocity. Default is false.
xrealGetPenVelocityX ()
voidSetPenVelocityX (xreal value)
When PenSlew is true, this value is a multiple of the default pen speed in the X dimension. Permitted range is 0.1 to 100. Ignored when PenSlew is false.
xrealGetPenVelocityY ()
voidSetPenVelocityY (xreal value)
When PenSlew is true, this value is a multiple of the default pen speed in the y dimension. Permitted range is 0.1 to 100. Ignored when PenSlew is false.
xstringGetPlotterName ()
voidSetPlotterName (xrstring value)
c.f. The print dialog for support names eg: POSTSCRIPT, COLORPOSTSC
xboolGetSegmentedOutput ()
voidSetSegmentedOutput (xbool value)
Set to true to generate a segmented plot. Default is false.This may be true only if you are plotting a single page.
xboolGetSeparatePlotFiles ()
voidSetSeparatePlotFiles (xbool value)
Defines the default in the Print to File dialog box.
  • true-Sets the default to Create Separate Files.
  • false -A single file is created by default.
xrealGetUserScale ()
voidSetUserScale (xreal value)
Specifies a scale factor between 0.01 and 100 for scaling a model or drawing for plotting. Default is 0.01.


Methods Inherited from Class pfcExportInstructions:

GetFileType



Method Detail

xstringGetPlotterName ()
voidSetPlotterName (xrstring value)

c.f. The print dialog for support names eg: POSTSCRIPT, COLORPOSTSC

Note: MS_PRINT_MGR is not supported




xintGetOutputQuality ()
voidSetOutputQuality (xint value)

A value of 0, 1, 2, or 3. Default is 1. Defines the amount of checking for overlapping lines in a plot or 2-D export file, such as IGES, before making a file.

The values are interpreted as follows:
  • 0-Does not check for overlapping lines or collect lines of the same pen color.
  • 1-Does not check for overlapping lines, but collects lines of the same pen color for plotting.
  • 2-Partially checks edges with two vertices, and collects lines of the same pen color for plotting.
  • 3-Does a complete check of all edges against each other, regardless of the number of vertices, font, or color. Collects lines of the same pen color for plotting.





xrealGetUserScale ()
voidSetUserScale (xreal value)

Specifies a scale factor between 0.01 and 100 for scaling a model or drawing for plotting. Default is 0.01.




xboolGetPenSlew ()
voidSetPenSlew (xbool value)

Set to true if you want to adjust pen velocity. Default is false.




xrealGetPenVelocityX ()
voidSetPenVelocityX (xreal value)

When PenSlew is true, this value is a multiple of the default pen speed in the X dimension. Permitted range is 0.1 to 100. Ignored when PenSlew is false.




xrealGetPenVelocityY ()
voidSetPenVelocityY (xreal value)

When PenSlew is true, this value is a multiple of the default pen speed in the y dimension. Permitted range is 0.1 to 100. Ignored when PenSlew is false.




xboolGetSegmentedOutput ()
voidSetSegmentedOutput (xbool value)

Set to true to generate a segmented plot. Default is false.This may be true only if you are plotting a single page.




xboolGetLabelPlot ()
voidSetLabelPlot (xbool value)

If set to true , generates the plot with a label. Default is false; no label is created.




xboolGetSeparatePlotFiles ()
voidSetSeparatePlotFiles (xbool value)

Defines the default in the Print to File dialog box.
  • true-Sets the default to Create Separate Files.
  • false -A single file is created by default.





pfcPlotPaperSizeGetPaperSize ()
voidSetPaperSize (pfcPlotPaperSize value)

One of the pfcPlotPaperSize enumeration objects. Default is PlotPaperSize.ASIZEPLOT.




pfcPlotPageRangeGetPageRangeChoice ()
voidSetPageRangeChoice (pfcPlotPageRange value)

One of the pfcPlotPageRange enumeration objects. Default is PlotPageRange.PLOT_RANGE_ALL.




optional xrealGetPaperSizeX ()
voidSetPaperSizeX (optional xreal value)

When PaperSize is PlotPaperSize.VARIABLEPLOTSIZE, this specifies the size of the plotter paper in the X dimension. Otherwise, the value is null




optional xrealGetPaperSizeY ()
voidSetPaperSizeY (optional xreal value)

When PaperSize is PlotPaperSize.VARIABLEPLOTSIZE, this specifies the size of the plotter paper in the Y dimension. Otherwise, the value is null.




optional xintGetFirstPage ()
voidSetFirstPage (optional xint value)

When PageRangeChoice is PlotPageRange.PLOT_RANGE_OF_PAGES, this specifies the first page to print. Otherwise, the value is null




optional xintGetLastPage ()
voidSetLastPage (optional xint value)

When PageRangeChoice is PlotPageRange.PLOT_RANGE_OF_PAGES, this specifies the last page to print. Otherwise, the value is null




static pfcPlotInstructions_ptrCreate (xrstring PlotterName)

Creates a new instructions object used to plot a part, drawing, or assembly.

The drawing must be displayed in a window to be successfully plotted. The return value must be passed to pfcModel::Export(xrstring, pfcExportInstructions_ptr) to produce the output file. This export-instructions class has been superseeded by pfcPrinterInstructions objects.
Parameters:
PlotterName
The name of a printer, typed exactly as it would appear in a user's File > Print dialog.
Returns:
The instructions object