hexagon logo

help, auto save .prg after run, in a specific location variable.

I have been looking through all the past topics about this. but I am having trouble getting them working. I tried copy and pasting a few of them. and saving them as a .bas file and running the script. but i cant get one to work for me.


i currently already have a script that auto creates a folder from an operator input and saves the cmm report in that folder.

so ideally i want to follow that same train of thought and save a .prg & .cad in that same folder already created.


please advice.

Parents
  • Like:
    [FONT=arial][SIZE=12px]newname = "Q:\Quality\In Process Inspection Plans\" & PartNo.StringValue
    newname = newname & "\CMM REPORTS\ObjFolder\"
    newname = newname & PCDPartProgram.PartName
    newname = newname & " - "
    newname = newname & SerialNo
    newname = newname & ".PRG" [/SIZE][/FONT]
    
Reply
  • Like:
    [FONT=arial][SIZE=12px]newname = "Q:\Quality\In Process Inspection Plans\" & PartNo.StringValue
    newname = newname & "\CMM REPORTS\ObjFolder\"
    newname = newname & PCDPartProgram.PartName
    newname = newname & " - "
    newname = newname & SerialNo
    newname = newname & ".PRG" [/SIZE][/FONT]
    
Children