hexagon logo

Automated execution of several consecutive programs

Hi guys.
I would like to know how i can automate the execution of several consecutive programs and which software i can do it easily.
Maybe somebody can share some code of vba or c+.
the goal is to run a program and after completion execute the next until finish all programs that i need. I will use an external alignment in every program in order to mesure all parts that i have fixed on the cmm table.
Thank you

Enviado desde mi SM-G928F mediante Tapatalk
Parents
  • Try

    In your basic script

    Dim CMM_Name,Msg
    
    CMM_Name = PCDDmisPart.ActiveMachine
    
    If CMM_Name = "CMM1" Then
    
    Set PCDDmisCommand = PCDDmisCommands.Add(ASSIGNMENT,True)
    
    PCDDmisCommand.Marked = True
    
    retval = PCDDmisCommand.PutText("CMM_NAME",DEST _EXPR,0)
    
    retval = PCDDmisCommand.PutText("STR(""CMM1"")",SRC_EXPR,0)
    
    End If
    

    This should create an assignment into the program with the cmm name. (Assuming the cmm name is CMM1)
Reply
  • Try

    In your basic script

    Dim CMM_Name,Msg
    
    CMM_Name = PCDDmisPart.ActiveMachine
    
    If CMM_Name = "CMM1" Then
    
    Set PCDDmisCommand = PCDDmisCommands.Add(ASSIGNMENT,True)
    
    PCDDmisCommand.Marked = True
    
    retval = PCDDmisCommand.PutText("CMM_NAME",DEST _EXPR,0)
    
    retval = PCDDmisCommand.PutText("STR(""CMM1"")",SRC_EXPR,0)
    
    End If
    

    This should create an assignment into the program with the cmm name. (Assuming the cmm name is CMM1)
Children