Your Products have been synced, click here to refresh
ASSIGN/OOT=GETPROGRAMINFO("NUMOOT") ASSIGN/TIME=GETPROGRAMINFO("TIME") J1 =COMMENT/INPUT,YES,FULL SCREEN=NO, 'Job Number:' ASSIGN/JOB=J1.INPUT IF/OOT==0 CS1 =SCRIPT/FILENAME= C:\USERS\CJACQUAY\DESKTOP\MAKEFOLDER3.BAS FUNCTION/Main,SHOW=YES,, STARTSCRIPT/ ENDSCRIPT/ PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,APPEND="Z:\Everyone\ChadJ\2014programs\\"+J1.INPUT+"\JOB# "+J1.INPUT+" TIME "+TIME.PDF,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL_OUTPUT=OFF, PREVIOUS_RUNS=DELETE_INSTANCES END_IF/
Sub Main() Set joname=PCDPartProgram.GetVariableValue("JOB") Fname = sampname.Stringvalue & " " & opname.Stringvalue & " " strDirectory = PCDPartProgram.Path & "\" & "Job Log" strFileName = joname.StringValue strPath = strDirectory & "/" & strFileName & ".txt" Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FileExists(strPath) Then Set objFile = objFSO.OpenTextFile(strPath) Else Set objFile = objFSO.CreateTextFile(strPath) Set objFile = objFSO.OpenTextFile(strPath) End If End Sub
ASSIGN/OOT=GETPROGRAMINFO("NUMOOT") ASSIGN/TIME=GETPROGRAMINFO("TIME") J1 =COMMENT/INPUT,YES,FULL SCREEN=NO, 'Job Number:' ASSIGN/JOB=J1.INPUT IF/OOT==0 CS1 =SCRIPT/FILENAME= C:\USERS\CJACQUAY\DESKTOP\MAKEFOLDER3.BAS FUNCTION/Main,SHOW=YES,, STARTSCRIPT/ ENDSCRIPT/ PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,APPEND="Z:\Everyone\ChadJ\2014programs\\"+J1.INPUT+"\JOB# "+J1.INPUT+" TIME "+TIME.PDF,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL_OUTPUT=OFF, PREVIOUS_RUNS=DELETE_INSTANCES END_IF/
Sub Main() Set joname=PCDPartProgram.GetVariableValue("JOB") Fname = sampname.Stringvalue & " " & opname.Stringvalue & " " strDirectory = PCDPartProgram.Path & "\" & "Job Log" strFileName = joname.StringValue strPath = strDirectory & "/" & strFileName & ".txt" Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FileExists(strPath) Then Set objFile = objFSO.OpenTextFile(strPath) Else Set objFile = objFSO.CreateTextFile(strPath) Set objFile = objFSO.OpenTextFile(strPath) End If End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |