Model Analysis > Creo ModelCHECK > PTC Creo Modelcheck Operating Modes > Example: Text File for Batch Mode
Example: Text File for Batch Mode
If the <file>.txt file has the following lines:
part1.prt
part2.prt
asm1.asm
drw.drw
Creo ModelCHECK checks the four named models and creates reports for each one.
Two methods for creating the text files follow:
Type: ls -1 *.prt.* *.asm.* *.drw.* > parts.lst
Write a shell program to automatically run Creo ModelCHECK in Batch mode on every file in a directory. It looks like the following lines:
ls -1 *.prt.* *.asm.* *.drw.* > /tmp/parts.lst
mc -f /tmp/parts.lst
rm /tmp/parts.lst