PDF Output support

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Examples >

PDF Output support

Description

This procedure allows you to create PDF output file of your drawings.

The option USE_TIF_FORMAT can assume these values:

0

no TIF/PDF output

1

TIF output

2

PDF output

If the above variable is set to 2, after a plot, you have to check the value of the @PDF_FILE_PATH result variable: it contains the path of the created PDF file.

See also

Plot
PlotPDFTIF

Example

sub main()

 DBWInit(TRUE)
 DBWShell("Plot")
 if DBWGetOption("PLOT_TO_FILE")="1" and DBWGetOption("USE_TIF_FORMAT")="2" then
   pdfFilePath = DBWResult("@PDF_FILE_PATH")
   DBWMsgBox "path=" & pdfFilePath
 end if
end sub