|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Plot > PlotPDFTIF |
Plots PDF or TIFF files; the command should be used typically from the OnPlotG.LST script
call DBWShell("PlotPDFTIF FullPathName PaperSize SheetNumber")
FullPathName |
the full path name of the PDF/TIF file to be plotted |
|---|---|
PaperSize |
the paper size; examples are "A4", "A3", etc |
SheetNumber |
Optional. A specific page number to be printed. |
For the PDF case only, the command applies the setting of the option Plot setup→
Plot multiple sheets
This command supports any LST\SHEET_FORMAT(printer_name).LST file for plotting TIF/PDF documents with paper sizes larger than A3.
OnPlotG.LST sample file:
.VBSCRIPT
sub main()
DBWInit(TRUE)
pathName = DBWInput("@DOCUMENT_PATHNAME")
uid = DBWInput("@DOCUMENT_UNIQUE_ID")
if ucase(fext)=".PDF" or ucase(fext)=".TIF" then
paper = DBWQueryByUid( uid, DBWLookUp("NAME_FIELD_PAPER_SIZE") )
DBWShell("PlotPDFTIF " & replace(pathName," ","|") & " " & paper )
end if
end sub
Passing the sheet number:
sub main()
DBWInit(TRUE)
...
paper = DBWQueryByUid(uid, DBWLookUp("NAME_FIELD_PAPER_SIZE"))
sheetNo = "3"
DBWShell("PlotPDFTIF " & replace(pathName," ","|") & " " & paper & " " & sheetNo)
...
end sub
Passing the sheet number but avoiding the papersize:
sub main()
DBWInit(TRUE)
...
sheetNo = "3"
DBWShell("PlotPDFTIF " & replace(pathName," ","|") & " NOTUSED " & sheetNo)
...
end sub