Saving this for my reference - A batch file that I used to run ModelCheck outside of Pro/E.
It creates a list of the files (parts.lst) in a directory. The list is progressive, starting with .prt, then .asm, and finally .drw.
It deletes the original (*.1) files (from the backup) so I know there’s no reason to check them in or add them back to my workspace.
The %1 is for a shortcut startup directory.
Some optional ideas are commented out, like the purge at the end.
cd /d %1 echo modelcheck_enabled yes > config.pro if exist parts.lst del parts.lst dir *.prt.* *.asm.* *.drw.* /b > parts.lst set path=d:\ptc\wf2\bin;d:\batch pause call modelcheck.bat pro25.bat -f parts.lst pause rem c:\windows\system32\notepad.exe std.out rem cleanup.bat %1 rem del *.prt.1 *.asm.1 *.drw.1 *.frm.* trail.txt.* config.pro mc_run* rem purge
Things you might do differently:
- Copy a different config.pro into this directory. I never really bothered checking out the no_graphics option.
- Open the error log (mc_err.log), but the std.out echoes all the changes made during the run.
- Open the .html results?
- Purge and copy all *.prt.*, *.asm.*, and *.drw.* files to a clean directory.
Once again, I’m reminded how nice it is to have a decent text editor like TextPad available on my context menu ready and willing to open any file type.