hexagon logo

PRS_SaveDoc / Adding PRC to SDB

Hello.

I am running Q7, one version last updated 2011, the other in 2017. The newer version has the PRS_SaveDoc command, which I find is the best way to output PDF and the standard command I want to use on both CMMs. I am trying to "install" the PRS_SaveDoc command to the older Q7. I am opening the SDB in newer version, viewing PRS_SaveDoc in the info box tab and copying the contents to a txt file, then copying the contents of the txt file to the command buffer in the old Q7. I am believing if I execute this, it should create the PRC in the SDB so I can use the command. However It hangs up on a CVSTRREA line, see code and grab of error.

!-------------------------------------------------------------------------
! PRC:PRS_SaveDoc
! modified PRC:PRS_SavePDF for creating PDF/XPS without PDFCreator
! 30.Jan.2014 (NR)
! 24.Apr.2014 (JO) remove BOO:
! 25.Apr.2014 (HJS) use different error message
! 29.Apr.2014 (HJS) adjust behavoir of PRC to Printer Server (file extension)
!                   in case of TMO > 0
!-------------------------------------------------------------------------

ENBSYS          (NAM=CLEANUP)

~DIR$$ = ~INP$CHS(1)
~FIL$$ = ~INP$CHS(2)
~FMT$$ = ~INP$CHS(3)
~PGN$$ = ~INP$CHS(4)
~OPN$$ = ~INP$CHS(5)
~NAM$$ = ~INP$CHS(6)
~TMO$$ = ~INP$CHS(7)
[COLOR=#FF0000]CVSTRREA        (NAM=TMO$$, STR=~TMO$$, NBR=1)[/COLOR]
TESTQUE         (REA=Fnd$$, OBJ=CHS:~INP$CHS(8))
IFTHEN          (VL1=Fnd$$, VL2=0, TYP=GT)
  ~CLS$$ = ~INP$CHS(8)
 ELSE
  ~CLS$$ = S
ENDIF




Is this even a legitimate way to copy a PRC over?

If so, any idea why this hangs up here?

Thanks
Parents Reply Children