hexagon logo

Need instruction or code

Hi.
I wonder if there is an instruction or code that to certain hour executes a program in PC dmis?

as always, thanks for any information.
Parents
  • Dim PCDApp, PCDPartPrograms, PCDPartProgram
    
    Set PCDApp = CreateObject("PCDLRN.Application")
    Set PCDPartPrograms = PCDApp.PartPrograms
    
    PCDApp.Visible = True
    PCDPartPrograms.Open "Z:\test.PRG", "CMM1"
    
    Set PCDPartProgram = PCDApp.ActivePartProgram
    
    'msgbox "This will start the execution of the partprogram!"
    PCDPartProgram.Execute
    
    ' PC-DMIS executes the partprogram
    
    PCDPartProgram.Close
    
    ' PC-DMIS closes and saves the partprogram
    
    ' Cleanup
    Set PCDPartProgram = nothing
    Set PCDPartPrograms = nothing
    Set PCDApp = nothing​
Reply
  • Dim PCDApp, PCDPartPrograms, PCDPartProgram
    
    Set PCDApp = CreateObject("PCDLRN.Application")
    Set PCDPartPrograms = PCDApp.PartPrograms
    
    PCDApp.Visible = True
    PCDPartPrograms.Open "Z:\test.PRG", "CMM1"
    
    Set PCDPartProgram = PCDApp.ActivePartProgram
    
    'msgbox "This will start the execution of the partprogram!"
    PCDPartProgram.Execute
    
    ' PC-DMIS executes the partprogram
    
    PCDPartProgram.Close
    
    ' PC-DMIS closes and saves the partprogram
    
    ' Cleanup
    Set PCDPartProgram = nothing
    Set PCDPartPrograms = nothing
    Set PCDApp = nothing​
Children