Your Products have been synced, click here to refresh
Sub Main() Dim objFSO, objShell Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval Dim objFile, objFolder As Object 'Assign PCDMIS Commands, And pulls In the variables Set PCDApp = CreateObject("PCDLRN.Application") Set PCDPartProgram = PCDApp.ActivePartProgram Set PCDCommands = PCDPartProgram.Commands
strDirectory = PCDPartProgram.Path & "\" & "Job Log" strFileName = joname.StringValue [B]strPath[/B] = strDirectory & "/" & strFileName & ".txt"
TO_FILE=ON,APPEND="[B]Z:\Everyone\ChadJ\2014programs\\"+J1.INPUT+"\JOB# "+J1.INPUT+" TIME "+TIME.PDF[/B]
If objFSO.FileExists(strPath) Then Set objFile = objFSO.OpenTextFile(strPath) Else Set objFile = objFSO.CreateTextFile(strPath) Set objFile = objFSO.OpenTextFile(strPath) End If
ASSIGN/OOT=GETPROGRAMINFO("NUMOOT") ASSIGN/TIME=GETPROGRAMINFO("TIME") J1 =COMMENT/INPUT,YES,FULL SCREEN=NO, 'Job Number:' ASSIGN/JOB=J1.INPUT ASSIGN/PATH="Z:\Everyone\ChadJ\2014programs\\"+J1.INPUT+"\JOB# "+J1.INPUT+" TIME "+TIME.PDF ASSIGN/PATH2="Z:\Everyone\ChadJ\2014programs\\"+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=PATH,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() Dim objFSO, objShell Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval Dim objFile, objFolder As Object Set PCDApp=CreateObject("PCDLRN.Application") Set PCDPartProgram=PCDApp.ActivePartProgram Set PCDCommands=PCDPartProgram.Commands Set Jobnumber=PCDPartProgram.GetVariableValue("JOB") Set Pathname=PCDPartProgram.GetVariableValue("PATH2") strFolderName=Jobnumber.StringValue strPath=Pathname.StringValue Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FileExists(strPath) Then 'Set objFile=objFSO.OpenFolder(strPath) Else Set objFile=objFSO.CreateFolder(strPath) 'Set objFile=objFSO.OpenFolder(strPath) End If End Sub
Sub Main() Dim objFSO, objShell Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval Dim objFile, objFolder As Object Set PCDApp=CreateObject("PCDLRN.Application") Set PCDPartProgram=PCDApp.ActivePartProgram Set PCDCommands=PCDPartProgram.Commands Set Pathname=PCDPartProgram.GetVariableValue("PATH2") strPath=Pathname.StringValue Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists(strPath) Then 'Nothing Else Set objFile=objFSO.CreateFolder(strPath) End If End Sub
Sub Main() Dim objFSO, objShell Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval Dim objFile, objFolder As Object Set PCDApp=CreateObject("PCDLRN.Application") Set PCDPartProgram=PCDApp.ActivePartProgram Set PCDCommands=PCDPartProgram.Commands Set Pathname=PCDPartProgram.GetVariableValue("PATH2") strPath=Pathname.StringValue Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists(strPath) Then 'Nothing Else Set objFile=objFSO.CreateFolder(strPath) End If End Sub
Sub Main() Dim objFSO, objShell Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval Dim objFile, objFolder As Object Set PCDApp=CreateObject("PCDLRN.Application") Set PCDPartProgram=PCDApp.ActivePartProgram Set PCDCommands=PCDPartProgram.Commands Set Pathname=PCDPartProgram.GetVariableValue("PATH2") strPath=Pathname.StringValue Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists(strPath) Then 'Nothing Else Set objFile=objFSO.CreateFolder(strPath) End If End Sub
ASSIGN/PATH="Q:\\Quality\\In Process Inspection Plans\\11127-MACHINE\\CMM REPORTS\\"+JN.INPUT+"\ "+PROG_NAME+"_"+V2+".PDF" ASSIGN/PATH2="Q:\\Quality\\In Process Inspection Plans\\11127-MACHINE\\CMM REPORTS\\"+JN.INPUT PRINT =LABEL/ PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,APPEND=PATH,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
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |