[Br...] Posted August 5, 2021 Share Posted August 5, 2021 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 More sharing options...
[Ma...] Posted August 6, 2021 Share Posted August 6, 2021 All this could be possible without PCM - just edit default names for plan. Link to comment Share on other sites More sharing options...
[To...] Posted August 6, 2021 Share Posted August 6, 2021 a youtube video explaining how to do what Martin suggests. https://youtu.be/xYYknavH1VQ Link to comment Share on other sites More sharing options...
[Br...] Posted August 7, 2021 Author Share Posted August 7, 2021 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 More sharing options...
[Is...] Posted August 8, 2021 Share Posted August 8, 2021 ... Link to comment Share on other sites More sharing options...
[Ri...] Posted January 5, 2022 Share Posted January 5, 2022 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in