Jump to content

Report storage path


---
 Share

Recommended Posts

In case some of the newer programmers aren't aware of this useful bit of code. This goes in;

Resources > Name for output files > For this measurement plan. and will automatically detect the program name that it has been inserted in and create a folder by that name storing its report.

"M:\Measurement Equipment Results\Zeiss Calypso\"+getRecordHead("planid")+"\"+getRecordHead("planid")+"__"+getRecordHead("date")+"__"+getRecordHead("time")+"__"+getRecordHead("order")+"__"+getRecordHead("partnbinc")+".txt
Link to comment
Share on other sites

Just a heads up related to this topic. If you rely on having other operator entry fields in the file path, i.e. Customer, Drawing No., custom user field, etc., be aware that if the field is left blank, it will create an error in the file path

For example
"M:\Results\"+getRecordHead("customer")+"\"+getRecordHead("planid")+"\"+getRecordHead("planid")+"__"+getRecordHead("partnbinc")+".txt

If the Customer field is left blank the resulting path will be M:\Results\test_ID\test_ID__14.txt which will fail and file will not be saved.
Link to comment
Share on other sites

 Share

×
×
  • Create New...