jagodragon
Automotive
I'm working on a Declaration script for a PDF plotter setting. I have it set fairly well i think but the %CATPRT_DOC_SHEET_NUM% and %CATPRT_DOC_SHEET_COUNT% do not return any thing.
so it sould print
but instead i get
Any suggestion?
The full scrip is below:
Code:
set CATOUT=%CATPRT_DOC_PATH%\%CATPRT_DOC_NAME%_Sheet%CATPRT_DOC_SHEET_NUM%_of_%CATPRT_DOC_SHEET_COUNT%.pdf
so it sould print
Code:
\\netpath\test.CATDrawing_Sheet1_of_5.pdf
but instead i get
Code:
\\netpath\test.CATDrawing_Sheet_of_.pdf
Any suggestion?
The full scrip is below:
Code:
rem Default: %CATPRT_DOC_PATH%\%CATPRT_DOC_NAME%_Sheet-%CATPRT_DOC_SHEET_NAME%_of_%CATPRT_DOC_SHEET_COUNT%%CATPRT_PRINTER_NAME%
if %CATPRT_DOC_SHEETS_COUNT%==1 goto OneSheet
set CATOUT=%CATPRT_DOC_PATH%\%CATPRT_DOC_NAME%_Sheet-%CATPRT_DOC_SHEET_NAME%_of_%CATPRT_DOC_SHEET_COUNT%%CATPRT_PRINTER_NAME%
goto End
:OneSheet
set CATOUT=%CATPRT_DOC_PATH%\%CATPRT_DOC_NAME%%CATPRT_PRINTER_NAME%
:End