Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATOUT QUESTIONS

Status
Not open for further replies.

jagodragon

Automotive
Mar 2, 2009
61
US
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.

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
 
Replies continue below

Recommended for you

just wanted to bump this up while every one is active... I'm really hoping it's an easy fix and i'm just missing some thing...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top