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
  • Your help is very much appreciated, gentlemen...unfortunately, after incorporating both suggested changes, I'm still getting "Error on line: 29 - OLE Automation Exception" (Line 29 being "newname = "Q:\Quality\In Process Inspection Plans" & PartNo.StringValue & "\CMM REPORTS\ObjFolder" & PCDPartProgram.PartName & " - " & SerialNo & ".PRG")
    . I've looked up information on this error message and haven't been able to find anything that was of any real use in helping me resolve it. I don't know if it's a formatting issue or what exactly I'm looking at here, but it's definitely got me stumped.
Reply
  • Your help is very much appreciated, gentlemen...unfortunately, after incorporating both suggested changes, I'm still getting "Error on line: 29 - OLE Automation Exception" (Line 29 being "newname = "Q:\Quality\In Process Inspection Plans" & PartNo.StringValue & "\CMM REPORTS\ObjFolder" & PCDPartProgram.PartName & " - " & SerialNo & ".PRG")
    . I've looked up information on this error message and haven't been able to find anything that was of any real use in helping me resolve it. I don't know if it's a formatting issue or what exactly I'm looking at here, but it's definitely got me stumped.
Children
No Data