Jump to content

Saving results and measured points


---
 Share

Recommended Posts

I am trying to automatically rename and save the custom and compact printouts as .pdf files, as well as the .zmp inspection points to a server location that is separate from the inspection directory. I am using the report_end_pcm.txt file, and I have tried multiple different approaches without getting the results I am looking for. Does anyone have a good starting point for accomplishing this?

Here is the current status of my code:

// 1st ouput - Custom Printout
defineProtocol("#name",""\\NOS\Data\Gear_Lab_Zeiss_Output\"+getRecordHead("u_NewVariable6")+"\"+getRecordHead("planid")+"\Custom-"+getRecordHead("order")+"-Part_"+getRecordHead("partnbinc")+"-"+getRecordHead("date")+"-"+getRecordHead("time")+".pdf"")
defineProtocol("#type","presentationProtocol")
defineProtocol("#medium","pdf")
defineProtocol("#elements","allCF")
defineProtocol("#order","likeList")
// 2nd output - Compact Printout
defineProtocol("#name",""\\NOS\Data\Gear_Lab_Zeiss_Output\"+getRecordHead("u_NewVariable6")+"\"+getRecordHead("planid")+"\Compact-"+getRecordHead("order")+"-Part_"+getRecordHead("partnbinc")+"-"+getRecordHead("date")+"-"+getRecordHead("time")+".pdf"")
defineProtocol("#order","likelist")
defineProtocol("#type","compactProtocol")
defineProtocol("#medium","pdf")
defineProtocol("#elements","allCF")
// 3rdnd output - Measurement Points
defineProtocol("#name","\\NOS\Data\Gear_Lab_Zeiss_Output\"+getRecordHead("u_NewVariable6")+"\"+getRecordHead("planid")+"\Points-"+getRecordHead("order")+"-Part_"+getRecordHead("partnbinc")+"-"+getRecordHead("date")+"-"+getRecordHead("time")+".zmp"")
defineProtocol("#type","measPointsLE")

This is my first time attempting output with PCM, so any help is appreciated.

-Brenton Davis
Link to comment
Share on other sites

I have done that before, but my understanding is it works for programs currently opened. I have hundreds of programs created that do not have that activated, and I am trying to avoid modifying 500+ programs, and then have to potentially update all of them again in the future if file paths change. I like the PCM approach because I am hoping to have a single script that can be updated when needed if it is possible.
Link to comment
Share on other sites

  • 4 months later...
Just use "Name for output files"

Resources
...Name for output files
......for this measurement plan
or
......for all measurement plans

I send all my table files, pdf reports and measuring points data to a network.
See attached text file for strings I use.
Feel free to use them.
This does require your Protocol Header to be setup for the parameters used.

Calypso - Report header data.txt - Contains the headers used for the Report header.
Output File text strings.txt - Contains PCM strings for file output (to a server in my examples).

Output File text strings.txtCalyspo - Report header data.txt

Link to comment
Share on other sites

 Share

×
×
  • Create New...