hexagon logo

Using script to create folder for prg and save part program

Been reading up on the script manual (PC-DMIS) 3.6 Basic Language Reference Manual) trying to figure out how to get the script to create a folder for the report, the .prg, and any other files associated with the program by serial number of the part.

For example:
PART#_DESCRIPTION_SERIAL#_DATE_TIME

The goal is to write a script contained in the .prg that, upon execution of the part program, will create a folder in a specified directory with the variable filename using the inputs from the part program and save the .prg with the same name.

How would I pass the information from the operator inputs of the part program into the script to make this happen?
Parents
  • Very nice Rookie! Thanks for posting this. Very useful script.

    One suggestion: It looks like you are manually creating a text file to define the software that is on the machine and then reading that in here for traceability. You can automatically pull the version of PCDMIS that is running and populate that into a variable. This way you can have multiple versions of PCDMIS installed and it will always pull the one that is actually being used to run the program at that moment. You can do something similar with the computer name to provide traceability to the machine that the program is being executed on. You should be able to find code for both of those actions on the forum.
Reply
  • Very nice Rookie! Thanks for posting this. Very useful script.

    One suggestion: It looks like you are manually creating a text file to define the software that is on the machine and then reading that in here for traceability. You can automatically pull the version of PCDMIS that is running and populate that into a variable. This way you can have multiple versions of PCDMIS installed and it will always pull the one that is actually being used to run the program at that moment. You can do something similar with the computer name to provide traceability to the machine that the program is being executed on. You should be able to find code for both of those actions on the forum.
Children
No Data