Category 2D interface, Object ProPrint

Function ProPrintExecute


Description
Print a window using the specified options

The mdl in the window must match the mdl in mdl_options.

All the options should be first initialized by the apropriate ProPrintInit functions above.

The filename must contain the full path or be the name of a file in plot_dir or current directory. If file already exists there, it will be overwritten.

The mdl in the the mdl_options should be the object loaded to the window to be printed. The window can be a non-graphics window.

This function generates a wireframe plot of the object in either vector or raster format.

The correct ProPrintExecute printer_type is defined by the plotter value on the first line of the plotter configuration file. This file is available in the /text/plot_config folder. For the list of supported printers, please refer to the list in "Add Printer" in Creo Parametric's print dialog.

Synopsis
#include <ProPrint.h>
ProErrorProPrintExecute(
int window_id
/* (In)
The handle to the Creo Parametric window
*/
ProPrintPrinterOpts* printer_options
/* (In)
The printer options
*/
ProPrintMdlOpts* mdl_options
/* (In)
The model options
*/
ProPrintPlacementOpts* place_options
/* (In)
The placement options
*/
)
Returns
PRO_TK_NO_ERRORWindow printed successfully
PRO_TK_BAD_INPUTSOne or more arguments is bad
PRO_TK_BAD_CONTEXTPrint is not available in Design Test mode
PRO_TK_E_NOT_FOUNDIncomplete input data
PRO_TK_GENERAL_ERRORProblem during data conversion
PRO_TK_INVALID_NAMEWrong file name
PRO_TK_CANT_WRITENo write access for target file

Manual References:

  1. Interface: Customized Plot Driver: Using the Plot Driver Functionality
  2. Interface: Data Exchange: Exporting 2D Models
  3. Interface: Data Exchange: Example 1 Publishing a Drawing